Use cols / rows or style-width / height to size textarea?

what is considered best practice when specifying HTML text area sizes? only using cols / rows (which I think is mandatory with html strict 4.01) or setting width and height using css properties? or even set cols / rows for validity and then override the actual size with css?

+6
html css textarea
source share
1 answer

Please see this question: Do I need a text area size with CSS width / height attributes or HTML cols / rows attributes?

I agree with the top answer. You use rows / columns in case CSS is not supported; if the width or height is specified using CSS, they override the value obtained from the rows / columns.

+5
source share

All Articles