Alex Rivera | Logout

How can I override the minimum-font-size in Firefox?

Asked 2010-03-10T22:15:49.573
15

My site displays just like I need it to in IE and Opera, but in Firefox I can't use CSS to get font sizes smaller than Firefox's default minimum-font-size. Of course, I can go to Tools → Options and remove this value, but some users will see some of the elements displaced.

I have tried using !important, but it doesn't work, and I can't substitute the images for the text since they are dynamic fields.

Edit
Report

1 Answer

0

If you set the default CSS font size in your web pages to a percentage ... then through em sizing you can provide cross-browser scalability ... Setting the font size to 62.5% is a basis for rescaling fonts base hx sizes to 10px.

body {

    font-size: 62.5%;

}

p  {

    font-size: 1em;
}

So if you really wanted to make your standard paragraph text say 10px ... You would just state it in your CSS as 1em and it would render as 10px. Please note that if you really want to do this correctly ... you need to do a CSS reset too as you want your display to be consistent ...

Eric Meyers CSS Reset HTH

answered 2011-12-29T08:38:58.550

Your Answer