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.
1.4m articles
1.4m replys
5 comments
57.0k users