input height differences in Firefox and Chrome

The problem is essentially line-height.

Chrome sees line-height much like it sees height and Firefox doesn’t.

Adding height to the input should solve the problem, though you should be careful that your line-height and height match.

For example: height: 20px; line-height: 20px;.

http://jsfiddle.net/e2agj/1/ – Last example input is the correct one.

Leave a Comment