html - How to style a button's font in CSS? -


update: seems, issue i'm describing in question affects os x browsers.

i change font style of input buttons in css more or less this:

input[type="button"] {     font: italic bold 3em fantasy; } 

unfortunately, doesn't work in chrome, safari , opera on os x unless change default background-color, don't want do.

see here: http://jsfiddle.net/s7y5b/

enter image description here

so question simple: how can change button's font without changing background color, in way browsers understand? n jsfiddle example above, i'd have button 1 button 2, background color unchanged. how can done?

after fiddling it, seems osx change buttons despite normal styling done them. properties such height(even when element set display:block), font property , padding not rendered. see actual styling, element's border or background must styled.

it seems color , width properties render normally.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -