XHTML scalable textarea?

Posted on 2002-05-18
Last Modified: 2013-12-16
I have the following page that works great to create a scalable textarea.

By scalable, I mean that the textarea always occupies 100% of the <td> it's in.  Could be a <div> - I don't have a preference.

However, when I change the DOCTYPE in this page from HTML to XHTML (Transitional or Strict) - I can't get it to scale any more.

To assist you, the doctype I'd like to use is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

Is is possible to create an XHTML-compliant scalable textarea?


Question by:mraible
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 53

Expert Comment

ID: 7019971
What browser are you looking at it with.  In IE5.5, it scales correctly with both doctypes just fine.


Author Comment

ID: 7020518
IE 6 / Mozilla 6 RC2 - on Windows XP.  IE 6 switched to standards-compliant mode when you add the XHTML doctypes.
LVL 53

Accepted Solution

COBOLdinosaur earned 100 total points
ID: 7020571
You are being burned by IEs sloppy adherance to standards prior to IE6.  The page validates as xhtml 1.0 strict, but the CSS does not validate as Valid CSS 2. The height and width attribute cannot be applied to a textarea within the strict definition of the standard.  The normal action for browsers in that case would be to ignore the declaration.  

If you want the scalable textarea then you cannot use the strict dtd, and I'm not even sure that loose xhtml 1.0 will let you do it.


Author Comment

ID: 7020588
This is what I suspected.  So there is no way to make a scalable textarea with XHTML - I was just veryifying my findings.  Thanks for your expertise.
LVL 53

Expert Comment

ID: 7021505
I wish knew away around it. It looks like Microsoft has shot themselves in the foot with compatibility.  IE 6 has some position problems compared to earlier versions as well.  The way it used to determine margins was not to standard, so some elements may get shifted a little.

Someday maybe browser manufacturers will give us a version without problems, but don't count on it.

Thanks for the A. :^)


Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question