Donotello Donotello - 1 year ago 158
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.

Answer Source

It's because textarea is a replaced inline element.

textarea {

should solve your "problem".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download