Hi Guys,
I'm building a page, and the body has been given a background color. I have a container DIV, and within it are several divs that hold individual elements. I need the background of the container div and everything in it to remain white, regardless of the color of the body background.
<!--- Body tag --->
body
{
background: #FF00AA; color: #000000;
font: .8em arial, helvetica, sans-serif;
margin: auto;
padding:0px;
}
<!--- container div---->
#pages
{ background-color:#FFFFFF;
width: 900px;
}
<!--- nested container divs --->
#pages title
{
display: inline;
width: 375px;
float: left;
padding:0 .25em .5em 0;
}
#pages categories
{
display: inline;
width: 20%;
float: left;
padding:0 0 0 0;
}
But this isn't working.. What am I doing wrong here? I just need to make sure EVERYTHING's background is white when it's placed within the container div (pages).
I'm building a page, and the body has been given a background color. I have a container DIV, and within it are several divs that hold individual elements. I need the background of the container div and everything in it to remain white, regardless of the color of the body background.
<!--- Body tag --->
body
{
background: #FF00AA; color: #000000;
font: .8em arial, helvetica, sans-serif;
margin: auto;
padding:0px;
}
<!--- container div---->
#pages
{ background-color:#FFFFFF;
width: 900px;
}
<!--- nested container divs --->
#pages title
{
display: inline;
width: 375px;
float: left;
padding:0 .25em .5em 0;
}
#pages categories
{
display: inline;
width: 20%;
float: left;
padding:0 0 0 0;
}
But this isn't working.. What am I doing wrong here? I just need to make sure EVERYTHING's background is white when it's placed within the container div (pages).