7

what is considered best practice when specifying the dimensions of an HTML textarea? only using cols/rows (which i think are mandatory with html strict 4.01) or specifying width and height using css properties? or even setting cols/rows for validity and then overriding the actual size using css?

knittl
  • 246,190
  • 53
  • 318
  • 364

1 Answers1

5

Please see this question: Should I size a textarea with CSS width / height or HTML cols / rows attributes?

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

Community
  • 1
  • 1
MaxVT
  • 12,989
  • 6
  • 36
  • 50