I know this is a very popular problem and is covered many places on the Internet but I haven't found a clean and clear resolution to it. I have an existing fixed-width template that I've manually coded using floats and the center column doesn't extend far enough on some pages unless I add text or line breaks to make it extend far enough, which I'm unwilling to do. I prefer to leave my template fixed width and using floats unless I there is no clean fix for this.
You can view the site here:
http://66.147.240.99/~aquater1/index.php/faqs/why-shouldnt-i-just-drill-deeper/
And here's my CSS:
body {
background-color:#E5E5E5;
margin:0px;
}
#wrapper1 {
/* color: #E6E6E6; */
color: black;
margin: 10px auto 0px auto;
width: 960px;
position: relative;
font-family: Helvetica, Verdana, sans-serif;
font-size: small;
}
/* -------------------------------------------------------- */
#wrapper2 {
/* background-color: #0C0237; */
width: 940px;
border: 4px solid #151515;
/* background-color: #581E1D; */
background-color: #368798;
-moz-border-radius:5px;
-webkit-border-radius:5px;
-opera-border-radius:5px;
-khtml-border-radius:5px;
border-radius: 5px;
box-shadow: 8px 8px 8px #555555;
-moz-box-shadow: 8px 8px 8px #555555;
}
#header{
background-image:url(http://66.147.240.99/~aquater1/themes/blue_bubbles_hk/images/header.jpg);
height: 200px;
/* display: inline; */
border-bottom: 4px solid #151515;
color: #E6E6E6;
}
#headertext {
padding: 10px;
width: 680px;
height: 130px;
float: left;
text-align: center;
overflow: hidden;
}
/* Div to hold menu buttons. */
#navtop {
padding: 12px 10px 0px 10px;
float: left;
height: 34px;
width: 680px;
overflow: hidden;
}
/* ---------------------------------------------------- */
#navtop a {
text-decoration: none;
}
#navtop ul {
margin: 0;
padding: 0;
list-style: none;
}
#navtop li {
display: inline;
margin: 0;
padding: 8px ;
border-right: 2px white solid;
font-weight: bold;
font-size: small;
}
#navtop li a:hover {
border-bottom: 2px white solid;
cursor: hand;
}
#centercolumn {
padding: 12px 18px;
float: left;
width: 480px;
display: inline;
background-color: #E4D9B6;
}
#leftcolumn {
float: left;
width: 210px;
display:inline;
color: white;
}
#leftcolumn ul {
list-style-type: none;
margin: 0px;
padding: 0px;
}
#leftcolumn li a {
text-decoration: none;
display: block;
background-color: #373737;
width: 204px;
height: 30px;
padding-top: 8px;
padding-left: 6px;
}
#leftcolumn li {
border-bottom: 2px black solid;
font-weight: bold;
font-size: small;
}
#leftcolumn li a:hover {
border-bottom: 2px white solid;
cursor: hand;
}
#rightcolumn {
float: right;
padding: 12px;
width: 190px;
display: inline;
text-align: right;
color: white;
}
#rightcolumn img {
background-color: black;
opacity: 0.3; /* Safari, Opera */
-moz-opacity:0.30; /* FireFox */
filter: alpha(opacity=30); /* IE */
}
#rightcolumn img:hover {
opacity: 1; /* Safari, Opera */
-moz-opacity: 1; /* FireFox */
filter: alpha(opacity=100); /* IE */
}
#columnheader {
padding: 1px;
text-align: center;
background-color: #232323;
}
#footer {
padding: 12px;
clear: both;
text-align: center;
border-top: 4px solid #151515;
font-weight: bold;
font-size: small;
background-color: #0C0237;
color: #E6E6E6;
}