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

Background colour issues

Options
  • 11-07-2010 4:02pm
    #1
    Registered Users Posts: 922 ✭✭✭


    Right, this is driving me nuts, it is a basic problem, but I appear to be unable to see the problem!

    Basically, when I use a .css file to set the background colour of a webpage it doesn't work. When I add the the style in the header using the <style> it works just fine. At first I thought it might be one of the other elements affecting it but even when I remove all the other styles the problem still remains.

    style.css
    #body
    {
    background-color:#0000FF;
    }
    

    test.html
    <html>
    <head>
    <link rel="stylesheet" href="style.css" type="text/css"/>
    </head>
    
    <body>
    
    <p>This is some text</p>
    
    </body>
    </html>
    

    I'm sure the problem is clear to someone, but alas, I can't see the wood for the trees...


Comments

Advertisement