Forum Moderators: not2easy
Here is some of the code:
<div id="maintable">
<div class="backgroundimage">
....some links....
<div class="spacer"></div> /to clear floats
<div id="container">
<div id="menu"> /styling of left floated menu
<div class="submenu"> /text styling of submenus
....menu....
</div>
</div>
<div id="maincontent"> / this is where the text sits
....text....
</div>
</div>
</div>
</div>
CSS:
.backgroundimage {
background: url(../images/backgrounds/backgrmain3.jpg) 0 0 no-repeat;
background-color:#FFFFFF;
width: 951px;
height: 900px;
}
#maintable {
font-family: Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
margin-left:auto;
margin-right: auto;
width: 951px;
}
div.spacer {
clear: both;
height: 0px;
}
#container {
width: 951px;
text-align: left;
background-color: #FFFFFF;
}
#maincontent {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding-left: 30px;
padding-top: 80px;
width: 720px;
float:left;
}
As you can see I have added lots of background-color and even tried to add another div which encompasses the background-image div and set it to a white background.
However, I think without giving the divs a height the background-color does not work?
What am I doing wrong?