tags:

views:

137

answers:

2

I'm sure it is meant to be like this (e.g. not a bug or browser flaw), but is it correct that the button text does not use the font size declared higher up?

<div style="font-size:10px;">

    This text would be 10px sized

    <div>
       This text would be 10px sized
    </div>

    <input type="button" value="OK" />

</div>
+3  A: 

Yes. The button is supposed to match the OS's style unless you explicitly style it using CSS.

MiffTheFox
haha... if I run Safari on my PC, it still looks like a Mac button! :)
Michael Bray
@Michael Bray - Well, nothing else in Safari for Windows looks like native Windows either... ;P
MiffTheFox
A: 

I just tested it on my end on Chrome, FF, and IE unless you define the button itself, it will maintain the default size.

Juan
thanks for going to the trouble of doing that!
davidsleeps