PDA

View Full Version : CSS font size problem



elli
27 Feb 2007, 09:44 PM
My font size won't change with this css below. I am new to css. There is no tag to insert into the html with this right? It should work just from the body tag but, doesn't. Everything else works though except the font size.

I hope somebody can help.

body
{
background-color: #E7ECF1;
font family: times,arial;
font-size: 9pt;
color: #ffffff;
}

Wickham
28 Feb 2007, 03:22 AM
It does change the font-size to 9pt; I've just tried your code on a test page of mine which had 16px before (but it's white font on a light gray background so it's hard to see). Have you altered browser settings? IE7 has check boxes in tools/internet options/advanced to reset text size to medium for new windows and tabs which is normally unchecked. Firefox in tools/ options/ content has a check box to allow pages to choose their own fonts which SHOULD be checked to allow your 9pt to be used.

However, with pt or px the font-size will not change in IE if a viewer changes the text size, but it will in Firefox.

In fact Firefox is following the rules to allow partially sighted people to alter the text size while IE6 was breaking this rule because there was no way in IE6 to increase the text size except by using a special stylesheet that disabled people can use. IE7 has a zoom facility which increases everything on a page including images so that the whole page formatting stays the same and this is a good feature.