Monday, May 21, 2012

CSS for textarea make textarea height span the height of the first line?

How can I make the textarea height match the height of the textarea as if it only had one row. It would essentially look like a text field. The nonreuseable way is by playing with the height attribute and making the textarea look like it only spans one row, but is there a reuseable way?

When I use the CSS attribute height: auto, it spans two rows.

No comments:

Post a Comment