treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Problem with fonts

  • Hey all!
    I'l like to create a <span> style with different fonts for Win and Mac. Its important that the text needs to be italic.
    For Win: Palatino Linotype
    For Mac: Apple Chancery (this font is like italic by default)

    So when I make this rule:
    span { font-family: "Apple Chancery", "Palatino Linotype"; font-style: italic; }

    The problem is that (I think) there is no italic version of Apple Chancery, its like italic by default - so on Mac the default font will be used when the italic rule is set. If I get out the italic rule is ok on Mac, but the text will be not italic on Win. :/
    Any suggestions?

    Thanks!
  • use conditional style sheets
  • As far as I know conditional comments are for IE only. I found some css hack, not sure if it works, but it looks so bad in the code..