css - vertical aligning text within dropdown or text input? -
I have text input and selection boxes at 40px width ... I want text within these elements of the input field Bottom half I have been successful in setting up Firefox (but Safari or Chrome) with padding top.
I need this to work for Safari and Chrome, however, these browsers automatically align texture in vertical center.
Is this the solution? Thanks!
You can use your padding code. To work it in Safari / Chrome / Opera, add line-height: 40px (or any height in your area) All browsers then recognize padding.
Comments
Post a Comment