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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -