I have a web page that contains a DIV ID= "page". Within this page I have a DIV ID="content".
I have these two statements in my CSS file listed in the page code:
"min-height: 300px; background-color: #c5d0ff;"
When I add a lot of text the page DIV increases in height as shown by the Web Diveloper Toolbar as the text increases. However, the background color does not increase beyond the min-height of 300px.
Hello lkeeney,
Post your full code here. There is more affecting your site than the little bit of info you've provided us here.
Even better would be a link to the test site so we can see it in action.
If I had to bet I would say you are not using a DocType. See the link about DocTypes in my signature line... in fact, have a look at every link in my signature line.
Last edited by Excavatorak; 12-09-2010 at 03:14 PM.
Hello lkeeney,
Post your full code here. There is more affecting your site than the little bit of info you've provided us here.
Even better would be a link to the test site so we can see it in action.
If you check with the Web Developer Toolbar, you will see the Page Div completely encloses the text, but the background color does not fill the Page DIV.
Yes, WebDeveloperToolbar may not be the best tool to use for debugging HTML/CSS. FireBug is much better. [edit - I just checked in WDT and it does not show the #page wrapping all the contents of your site. IE8 and the latest WDT here]
It's your absolutely positioned #content. AP takes that element out of the normal flow of the document so, when #page doesn't even see #content, the color stops at the bottom of #navigation.
Try making your CSS look like this -
Code:
/* Main 2 Style Sheet for Cube It Healthy
Design by Lawrence Keeney - Black Canyon Systems LLC*/
html, body {
background: #32604C;
height: 100%;
margin : 0;
}
#page {
min-height: 500px;
width: 960px;
margin: 0 auto;
position: relative;
background: #c5d0ff;
}
#navigation {
width: 220px;
float: left;
margin: 25px 0 0 5px;
}
#header{
text-align: center;
color: #019a49;
}
#content {
margin: 0 0 0 250px;
padding: 0 20px;
}
p{ font-family: Verdana, Arial, Helvetica, sans-serif; color: #111;}
Yes, WebDeveloperToolbar may not be the best tool to use for debugging HTML/CSS. FireBug is much better. [edit - I just checked in WDT and it does not show the #page wrapping all the contents of your site. IE8 and the latest WDT here]
It's your absolutely positioned #content. AP takes that element out of the normal flow of the document so, when #page doesn't even see #content, the color stops at the bottom of #navigation.
Try making your CSS look like this -
Code:
/* Main 2 Style Sheet for Cube It Healthy
Design by Lawrence Keeney - Black Canyon Systems LLC*/
html, body {
background: #32604C;
height: 100%;
margin : 0;
}
#page {
min-height: 500px;
width: 960px;
margin: 0 auto;
position: relative;
background: #c5d0ff;
}
#navigation {
width: 220px;
float: left;
margin: 25px 0 0 5px;
}
#header{
text-align: center;
color: #019a49;
}
#content {
margin: 0 0 0 250px;
padding: 0 20px;
}
p{ font-family: Verdana, Arial, Helvetica, sans-serif; color: #111;}
Bookmarks