Donotello Donotello - 7 months ago 83
CSS Question

Textarea height Chrome problem

Is anyone have solution for textarea height problem in Chrome?

In simple case like this:


Google Chrome add two pixels, so div.height = textarea.height + 2px. And yes, I try Eric's "reset.ccs" — didn't work.

P.S. of course in my "simple case" textarea and div have border, padding and margin 0px.


It's because textarea is a replaced inline element.

textarea {

should solve your "problem".