Sayian
12-07-2005, 03:42 AM
Im having a problem with length's in my xhtml / css document im designing.
I have a header, leftModule, rightModule and footer.
The header works fine, but then when i put content into the leftModule and rightModule, the content extends past the footer.
"The document wont catch up with the content" and the content is over lapping on the bottom.
Here is my css style, and relevant XHTML. Thanks for any help. Sorry i cant provide a URL to look @, im developing this on my home PC.
body {
background-color: #ddd;
font: 11px verdana,arial,helvetica,sans-serif;
margin: 0;
padding: 0;
}
#container {
background: #fff;
margin: 0 auto 0 auto;
padding: 0 10px 0 10px;
width: 800px;
border-left:20px black solid;
border-right:20px black solid;
}
#headerInfoBar {
background: #545454;
color: white;
font-size: 10px;
height: 16px;
margin: 0px;
padding: 5px 10px 5px 10px;
}
#header {
background: #4274BC;
height: 150px;
}
#header .left {
float: left;
width: 100%;
overflow:hidden;
height: 100px;
border:none;
margin: 30px 0 0 0;
background: url('http://www.pixxity.com/img/logos/pixxx.gif') no-repeat center;
}
#navMenu {
background: #545454;
font-size:10px;
padding: 4px;
height: 15px;
color: #f5f5f5;
}
#topAdHolder {
margin: 0 auto;
padding:7px;
width: 728px;
height: 90px;
text-align:center;
border-bottom: #ccc dashed 1px;
}
#footer {
font-size: 10px;
display:block;
height: 50px;
background: white;
margin: 0 auto;
padding: 0 10px 0 10px;
width: 800px;
border-left:20px black solid;
border-right:20px black solid;
border-bottom:15px black solid;
}
/*Left Modules */
#leftModule {
border-right: 1px dashed #ccc;
display: block;
border: 1px red solid;
float: left;
overflow: hidden;
padding: 6px 0 6px 0;
width: 496px;
}
#leftModule .block {
display: block;
margin-bottom: 9px;
clear:both;
padding: 6px;
width: 96%;
}
/* Right Modules */
#rightModule {
float: right;
border: 1px blue solid;
width: 300px;
}
#rightModule .adBlock {
display: block;
margin-bottom: 10px;
overflow: hidden;
padding: 5px 0 5px 0;
width: 100%;
}
The way i have this setup is like this.
<div id="container">
<div id="topAdHolder">google728x90here</div>
<div id="leftModule">
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<!-- I have added 4 of the above to try to express what is happening ... the first one would show fine, then the other 3 would be shown OVER the container, even over the footer ... the page isnt "Stretching" with the content. -->
</div> <!-- End Left Module -->
<div id="rightModule">stuff would go here</right>
</div> <!-- end container -->
<div id="footer"></div>
I wish i could provide a visual example but im sure someone knows what im talking about ...
I have a header, leftModule, rightModule and footer.
The header works fine, but then when i put content into the leftModule and rightModule, the content extends past the footer.
"The document wont catch up with the content" and the content is over lapping on the bottom.
Here is my css style, and relevant XHTML. Thanks for any help. Sorry i cant provide a URL to look @, im developing this on my home PC.
body {
background-color: #ddd;
font: 11px verdana,arial,helvetica,sans-serif;
margin: 0;
padding: 0;
}
#container {
background: #fff;
margin: 0 auto 0 auto;
padding: 0 10px 0 10px;
width: 800px;
border-left:20px black solid;
border-right:20px black solid;
}
#headerInfoBar {
background: #545454;
color: white;
font-size: 10px;
height: 16px;
margin: 0px;
padding: 5px 10px 5px 10px;
}
#header {
background: #4274BC;
height: 150px;
}
#header .left {
float: left;
width: 100%;
overflow:hidden;
height: 100px;
border:none;
margin: 30px 0 0 0;
background: url('http://www.pixxity.com/img/logos/pixxx.gif') no-repeat center;
}
#navMenu {
background: #545454;
font-size:10px;
padding: 4px;
height: 15px;
color: #f5f5f5;
}
#topAdHolder {
margin: 0 auto;
padding:7px;
width: 728px;
height: 90px;
text-align:center;
border-bottom: #ccc dashed 1px;
}
#footer {
font-size: 10px;
display:block;
height: 50px;
background: white;
margin: 0 auto;
padding: 0 10px 0 10px;
width: 800px;
border-left:20px black solid;
border-right:20px black solid;
border-bottom:15px black solid;
}
/*Left Modules */
#leftModule {
border-right: 1px dashed #ccc;
display: block;
border: 1px red solid;
float: left;
overflow: hidden;
padding: 6px 0 6px 0;
width: 496px;
}
#leftModule .block {
display: block;
margin-bottom: 9px;
clear:both;
padding: 6px;
width: 96%;
}
/* Right Modules */
#rightModule {
float: right;
border: 1px blue solid;
width: 300px;
}
#rightModule .adBlock {
display: block;
margin-bottom: 10px;
overflow: hidden;
padding: 5px 0 5px 0;
width: 100%;
}
The way i have this setup is like this.
<div id="container">
<div id="topAdHolder">google728x90here</div>
<div id="leftModule">
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<div class="pageTitle">Title blah blah</div>
<!-- I have added 4 of the above to try to express what is happening ... the first one would show fine, then the other 3 would be shown OVER the container, even over the footer ... the page isnt "Stretching" with the content. -->
</div> <!-- End Left Module -->
<div id="rightModule">stuff would go here</right>
</div> <!-- end container -->
<div id="footer"></div>
I wish i could provide a visual example but im sure someone knows what im talking about ...