I'd like to set the textarea's rows and cols attributes via CSS.
textarea
rows
cols
How would I do this in CSS?
<textarea rows="4" cols="50"></textarea>
It is equivalent to:
textarea { height: 4em; width: 50em; }
where 1em is equivalent to the current font size, thus make the text area 50 chars wide. see here.
2.1m questions
2.1m answers
60 comments
57.0k users