Why do you want to put a square peg in a round hole. The rows and cols attribute are the correct way to dimension texareas in every current standard including XHTML.
This is CSS overkill IMO.
The page starts with HTML. You use the tags and attributes to define the the required structures and you use the attributes to support the function they must perform to work with the data. You are short butchering a data container by mixing content and presentation. Use CSS fot its intende purpose, presentation and layout management. Don't misuse it by replacing the valid attributes of the tags that are sensitive to content.
If the rows and cols attribute were intended to be replace by CSS they would have been depreciated along with a lot of other legacy attributes that are unnecessary.
Cd&
Main Topics
Browse All Topics





by: Diablo84Posted on 2004-11-29 at 16:00:45ID: 12701544
Thats the right idea but while max-height and max-width is supported by Mozilla/Firefox is it not by IE.
code/max_w idth_in_ie /
So you might be better off with a fixed pixel width and height, eg:
#Data {
height: 400px;
width: 630px;
}
This may be worth a read: http://www.svendtofte.com/