What is wrong with this CSS?

Posted by Christopher on Stack Overflow See other posts from Stack Overflow or by Christopher
Published on 2010-04-27T21:43:12Z Indexed on 2010/04/27 21:53 UTC
Read the original article Hit count: 547

Filed under:
|
|

I have the following CSS code:

.yellow {
    background-image: url('/images/yellowlight.png');
    background-repeat: no-repeat;
    height:100%;
    width:100%;
}

and the following HTML code:

<div class="yellow">&nbsp;</div>

However, the div on the page does not have the image. You can see this by clicking on the blue "Logs Status" button (in the tab box) at http://cl58logs.co.cc/.

What's wrong with the CSS?

© Stack Overflow or respective owner

Related posts about css

Related posts about div