Tim Shaffer wrote:
> It's possible you have a style that is overwriting the rows and cols
> attribute.
For my experience, it's better to not use rows and cols for dimensioning 
textareas, because the dimensions of the textarea will depend from the 
dimensions of the row and of the column, that rely to font properties 
and change from browser to browser; it would be a good choice to set 
dimensions with css (width and height, to be clear). Consider this:

<html>
<head>
</head>
<body>
<textarea cols="10" rows="10" style="font-size: 10px"></textarea><br>
<textarea cols="10" rows="10" style="font-size: 20px"></textarea><br>
</body>
</html>

textareas dimensions are very different; this:

<html>
<head>
</head>
<body>
<textarea cols="10" rows="10" style="font-family: Arial"></textarea><br>
<textarea cols="10" rows="10" style="font-family: 
Verdana"></textarea><br>
</body>
</html>

I obtain 136x208 vs 138x228; on Firefox, 79x164 vs 89x164 on Chromium
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to