So the other day I was trying to get text input fields to have the same height across browsers. I figured I could use the line-height
property for this, but no such luck. Well, it does work in WebKit browsers, but not in Firefox.
When looking closer at why I discovered that Firefox specifies line-height for form controls in its user agent stylesheet using the !important
keyword. Since you can’t override that, a workaround is necessary.
Copyright © Roger Johansson