Forum Moderators: not2easy
CSS:
div#top {
background-image: url(/images/topmenubar.jpg);
position: absolute;
left: 0px;
top: 0px;
width: 451px;
height: 161px;
background-repeat: no-repeat;
border: 1px solid #FF0000;
visibility: visible;
}
HTML:
<body>
<div id = "content">
</div>
<div id = "menu">
</div>
<div id = "top">
</div>
</body>
</html>
I took your code and placed it on my pc, the following css is what I used (replaced the image with one of my own) and it worked for me.
Here is what i used
div#top {
background-image: url(dkblclds.jpg);
position: absolute;
left: 0px;
top: 0px;
width: 451px;
height: 161px;
background-repeat: repeat;
border: 1px solid #FF0000;
}
(I used repeat due to the graphic that I used on mine.) Do you have the url correct? This is the only thing that I can think of that would be causing the problem for you.
background-color:#ffffff;
background-image:url("images/layout/Masthead-2004c_01.jpg");
Note the word-wrap in this posting on the 2nd line.
Mine is part of a "div id" and is used inside a simple table.
The color shows up in case the image does not.
[w3schools.com...]
[w3.org...]
And this one explains that the usage of a single quote or double quote is optional
[w3.org...]
I hope that this helps you out a bit.
Also, make sure you have your style sheet linked correctly if its a linked, and if embeded, that its embeded correctly.