Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Most Sensible Way to Make Button and Form Height Match? Re: Most Sensible Way to Make Button and Form Height Match?

#135251
Merri
Participant

Form field rendering is darn inconsistent. Firefox makes the button 2px too high, Chrome instead makes it a few pixels smaller in both width and height.

Anyway, this should give somewhat consistent results: http://codepen.io/Merri/pen/uHzls

It looks identical in Firefox, Chrome, IE10 and Opera 12, but it uses one magic number hack thanks to Chrome.