How do I fix inconsistent Textarea bottom margin in Firefox and Chrome?

Tim Santeford picture Tim Santeford · Aug 11, 2010 · Viewed 13.6k times · Source

I'm trying to eliminate the extra bottom margin that both FF and Chrome seem to give to Textareas. Surprisingly IE seems to do it correctly. I would like to avoid using conditional includes but CSS3 tweaks are OK.

Sample Code

Answer

kmfk picture kmfk · Aug 11, 2010

By default, I believe both Chrome and Firefox will set these elements as display: inline-block;. Set display: block in your styles and you should be all set.