#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    2
    Rep Power
    0

    Question CSS font sizes in IE 5


    I am using an linked style sheet to render the font styles of my site. These fonts are displayed as they should be in IE 6, however in IE 5 the size of the font's seems to be ignored with all the other elements of the style being applies such as colour.

    I am using % to determine the size, e.g. font-size: 70%.

    Anyone got any ideas?
  2. #2
  3. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    Do you declare an initial font size, i.e. what the 100% would be?

    Don't know whether that would be the problem, just a shot in the dark.

    Jamie
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    2
    Rep Power
    0
    no, the body tag is declared first with a font size as 70%. As I said all the other elements of the style are being applied except the size.
  6. #4
  7. How may I help?
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    At a crossroads where hacked and standard code meet.
    Posts
    445
    Rep Power
    22
    Try setting
    Code:
    body
    {
     font-size: small
    }
    and then see how it works. Earlier versions of Internet Explorer may not recognize an initial % designation of size. If that doesn't work, try
    Code:
    body
    {
     font-size: 12pt
    }
    This forces an explicit size declaration, which your relative declarations can refer to.

    Hope that answers your question.

IMN logo majestic logo threadwatch logo seochat tools logo