I have this rule:
body {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px
}
but i have different font size for the selects and the buttons then for plain text.
What should i do if i want the same size for everything?
Regards
Javi
To change the font size of a button, use the font-size property.
The font-size-adjust property of CSS tells the browser to adjust the font size of the text to the same size regardless of font family. When the first chosen font is not available, the font-size-adjust property allows you more control over the font size.
The font-size property sets the size of a font.
formular elements usualy don't inherit those properties, so you have to do:
body{
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
}
input, select, button{
font-family: inherit;
font-size: inherit;
}
body,
input,
select,
button {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With