sivlock
03-13-2009, 12:14 PM
What im trying to do is keep the main content and every div within the main div white without having to set the background colour white to each floating div, any help people? Cheers. Code below
<body>
<div id="container">
<div id="left_header">IMAGE HERE</div>
<div id="right_header">IMAGE HERE</div>
</div>
</body>
body {
margin: 0;
padding: 0;
text-align: center;
background-image: url(images/background.jpg);
}
#container {
width: 875px;
text-align: left;
background-color: #FFFFFF;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
} #left_header {
width: 207px;
float: left;
}
#right_header {
width: 668px;
float: right;
}
<body>
<div id="container">
<div id="left_header">IMAGE HERE</div>
<div id="right_header">IMAGE HERE</div>
</div>
</body>
body {
margin: 0;
padding: 0;
text-align: center;
background-image: url(images/background.jpg);
}
#container {
width: 875px;
text-align: left;
background-color: #FFFFFF;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
} #left_header {
width: 207px;
float: left;
}
#right_header {
width: 668px;
float: right;
}