SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    May 2003
    Location
    London
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Browser support for Italic Font Families in CSS

    Hi All,

    Weird problem i'm having. I was using a Georgia font for a heading and wanted to use Georgia Italic instead of making a faux italic by changing the font style.

    Admittedly i never tried this before, but presumed it would work fine with something like this.

    Code:
    h1{font-family:"Georgia Italic",Georgia, serif;}
    Checking in Firefox (RC2), works fine. I have the Georgia Italic font displayed as excepted. However, on opening up in MSIE 6 (SP2) & Opera 7.54 - All on Windows XP SP2 - it seems to have decided to display Georgia and not Georgia Italic (or perhaps the default serif)

    So to make things abit clearer i changed the code to the following:

    Code:
    h1{font-family:"Georgia Italic",Arial, serif;}
    Now Firefox displays the same as before (Georgia Italic), IE6 displays Georgia (well, my default serif, which is Georgia) and Opera displays Arial !!

    I'm abit confused by this whole thing. Does Firefox support Italic fonts but not IE6 or Opera 7 ? or am i missing something obvious?

    Cheers,

    Ben

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,555
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Doesn't this do the job:
    Code:
    body{
    font-style:italic;
    font-family: Georgia, "Times New Roman", Times, serif;
    }
    Or am I missing something obvious again

    Paul

  3. #3
    SitePoint Zealot
    Join Date
    May 2003
    Location
    London
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm .. seems my computer went nuts . or i did


Bookmarks

Posting Permissions

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