Forum Moderators: not2easy

Message Too Old, No Replies

overriding background image?

         

dev79

4:41 am on Aug 20, 2003 (gmt 0)

10+ Year Member



i have a background image set for the body, in my css document but then i have div id that is a section that i want to have a solid background color that sits on top of the background image...

i know this isn't the most technical of issues, but i've tried coding this in a number of different manners but i can't get the the div id to take on the color it keeps generating a portion of the background image from the body setting...

any suggestions?

DrDoc

2:41 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



body {
background: url(foobar.gif);
}
#mydiv {
background: red;
}

<body>
Foobar
<div id="mydiv">I should be red</div>
Foobar
</body>