Edit: Sorry I posted this in the wrong forum, had multiple tabs open and got mixed up. Will see if I can get it moved asap.
FIXED!
I have tried so many ways to have something that works, but my content always overflows my div container (shrink the web page vertically to see what I mean), and I have no idea why.
My CSS code is below... It's done a bit weird because this was initially a different project that was changed.
#body = the entire container wrapper
#body2 = the entire container wrapper with a different border color
Inside of the body is #topad, #contentbox, and #playlistbox. Content box is the one that will expand, and I want it to cause #body and #body2 to expand accordingly as well.
The only thing that has worked is setting a fixed height, but I would prefer to have an expandable container, so if anyone can help, let me know. Thanks.
FIXED!
I have tried so many ways to have something that works, but my content always overflows my div container (shrink the web page vertically to see what I mean), and I have no idea why.
My CSS code is below... It's done a bit weird because this was initially a different project that was changed.
#body = the entire container wrapper
#body2 = the entire container wrapper with a different border color
Inside of the body is #topad, #contentbox, and #playlistbox. Content box is the one that will expand, and I want it to cause #body and #body2 to expand accordingly as well.
The only thing that has worked is setting a fixed height, but I would prefer to have an expandable container, so if anyone can help, let me know. Thanks.
Code:
@charset "utf-8";
/* CSS Document */
/* TLBR */
*{border:0px; margin:0px; padding:0px;
font-family:arial,sans-serif;
font-size:11px;
color:white;}
html {
height:100%;
}
body {
background-color:#666666;
height:100%;
background-image:url('images/bgpattern.gif'); background-repeat:repeat;
}
p {text-indent:20px; text-align:justify;}
a:link {color:white;}
a:visited {color:white;}
#body {display:block; position:relative; width:800px; min-height:100%; height:100%; margin:auto;
border-left:6px solid #640000; border-right:6px solid #640000; background-color:black;}
#body2 {display:block; position:relative; width:796px; border-left:2px solid #dddddd; border-right:2px solid #dddddd;
height:100%;}
#topspan {display:block; width:100%; height:150px; background-image:url('images/topgrad.png');
background-repeat:repeat-x; border-bottom:8px solid #640000;}
#banner {display:block; position:relative; width:800px; height:158px; margin:auto;
background-image:url('images/banner.png');}
#search {display:block; position:relative; top:100px; left:-5px;}
input.search {font-size:14px; border:5px solid #640000; text-align:center;}
input.searchbutton {display:block; position:relative; height:21px; width:21px; border:none; white-space:nowrap;
left:175px; bottom:23px;}
#intro {border-bottom:1px solid white; padding-bottom:10px; padding-top:10px; background-color:#222222;}
#closer {display:block; position:relative; width:812px; height:65px; margin:auto;
background-image:url('images/closer.png');}
#closerlinks {display:block; width:800px; position:relative; top:30px;}
/* Body */
#topad {display:block; position:relative; width:728px; height:90px; margin:auto;
top:20px;}
#counter {position:relative; text-align:center;}
#contentbox {display:block; position:absolute; width:455px;
top:150px; left:35px;}
#cb1 {display:block; width:455px; height:29px; background-image:url('images/cb1.gif'); text-align:center; line-height:29px; vertical-align:middle;
border-bottom:1px solid black; font-size:18px; font-weight:bold; color:#F7F7F7;}
#cb3 {display:block; position:relative; top:-2px; padding:2px;}
#playlistbox {display:block; position:absolute; width:236px; height:452px;
top:150px; right:35px;}
#pb1 {display:block; height:29px; background-image:url('images/pb1.gif');}
#pb3 {display:block; height:500px;}
#linkad {display:block; width:200px; height:90px; position:relative; margin:auto; top:20px;}
div.rightheader {display:block; width:200px; height:15px; background-color:#640000; margin:auto;
color:white; font-size:12px; text-decoration:underline; font-family:Arial, Helvetica, sans-serif; font-weight:bold;
text-indent:1px; position:relative; top:20px;}
div.rightlinks {display:block; width:200px; margin:auto;
position:relative; top:20px; padding-left:10px;}
Last edited:







