Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

FF and CSS

Options
  • 05-03-2007 10:22pm
    #1
    Registered Users Posts: 7,541 ✭✭✭


    Any reason why FF has a problem with this in an html page?
    <style TYPE="text/css">
    BODY { background: #000040; }
    .para1 { margin-top: -42px; margin-left: 145px; margin-right: 10px; font-family: "Verdana, Arial"; font-size: 30px; line-height: 35px; text-align: left; color: #E1E1E1; }
    .para2 { margin-top: 15px; margin-left: 15px; margin-right: 50px; font-family: "Verdana, Arial Black"; font-size: 50px; line-height: 40px; text-align: left; color: #004080; }
    </style>
    

    It seems to ignore the font-family tag.


Comments

  • Registered Users Posts: 15,065 ✭✭✭✭Malice


    Could it be the quotes around the font-family style? I had a quick look at style sheets I've created and I don't have quotes around them. They work fine in FireFox (version 2.0.0.2)


  • Registered Users Posts: 7,541 ✭✭✭irlrobins


    Yep, you're right, spot on. Cheers!


  • Registered Users Posts: 15,065 ✭✭✭✭Malice


    Nice one! If only all CSS and browser related issues could be solved so easily :)


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Someone beat me to the reply!

    For future reference, the quotes are only used around an individual font name if it has spaces in it, e.g.

    "Times New Roman",Font,"Other Font",serif


Advertisement