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

Back ground color in firefox not working?!

Options
  • 28-07-2010 9:50pm
    #1
    Registered Users Posts: 922 ✭✭✭


    EDIT: Found the problem, Firefox was reading the url part of the style sheet...

    www.ucd.ie/lnh

    When I visit the above site in IE7 and Chrome there is a white background where the main body of text is. This is what I want

    When I visit the above site in Firefox, the grey background also appears in the main body of text. This is what I don't want. Anyone know why this is?
    body
    {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
    background-color: silver;
    font: normal 12px Verdana, Arial, sans-serif;
    }
    
    #container 
    {
    width: 800px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    text-align: left;
    background: white url(/*watermark.jpg*/) no-repeat bottom left;
    color: #000;
    }
    

    The main body of text is within the container div. Any help?


Comments

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


    What's with the /* and */ on the background url ?
    background: white url(/*watermark.jpg*/) no-repeat bottom left;
    

    Shouldn't this just be
    background: white url(watermark.jpg) no-repeat bottom left;
    

    or
    background: white url('watermark.jpg') no-repeat bottom left;
    

    (although quotes not strictly required because there are no spaces in the filename).


  • Registered Users Posts: 1,829 ✭✭✭lil_lisa


    Did you get this fixed? Seems fine to me.


  • Registered Users Posts: 922 ✭✭✭IrishKnight


    Aye, tis fixed, I forgot I left the watermark.jpg so I just deleted the "url(/*watermark.jpg*/) no-repeat bottom left" part...


Advertisement