Chris1989
08-22-2010, 12:39 AM
Hey guys, having a bit of a problem with my page im trying to create and the background colors etc.
The html is basically this
<div id="container">
<div id="left">content</div>
<div id="right">content</div>
</div>
and the css is
body{
background:#000
}
#container{
background:#fff
width:720px
height:100%
}
#left{
float:left;
width:200px;
height:100%;
background:#333
border:3px solid #444
}
#right{
float:right;
width:500px;
height:100%;
}
Now thats just a quick copy, theres a lot more to it obviously but thats the principle of it. Now my body background is correct and the container background is correct but the background color of the #left div is not showing up its showing up as the containers color, however the border of the #left div shows up fine.
Any ideas?
Thanks.
The html is basically this
<div id="container">
<div id="left">content</div>
<div id="right">content</div>
</div>
and the css is
body{
background:#000
}
#container{
background:#fff
width:720px
height:100%
}
#left{
float:left;
width:200px;
height:100%;
background:#333
border:3px solid #444
}
#right{
float:right;
width:500px;
height:100%;
}
Now thats just a quick copy, theres a lot more to it obviously but thats the principle of it. Now my body background is correct and the container background is correct but the background color of the #left div is not showing up its showing up as the containers color, however the border of the #left div shows up fine.
Any ideas?
Thanks.