Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Back ground color in firefox not working?!

  • 28-07-2010 09:50PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 1,829 ✭✭✭lil_lisa


    Did you get this fixed? Seems fine to me.


  • Registered Users, Registered Users 2 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