Results 1 to 2 of 2

Thread: CSS font size problem

  1. #1
    Join Date
    Sep 2006
    Posts
    108

    CSS font size problem

    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;
    }

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. H1 tag not displaying proper font size with CSS link
    By sovereign6 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 21 Sep 2006, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •