Display: inline to your floats.
If it's not because of the missing display: inline, then you need to use the IE backslash hack to reduce the width of that float by 1.
Here's your code, I took the liberty of optimising it:
Code:
html, body, ul, dl, li, h1, h2, h3, h4, img {
margin: 0;
padding: 0;
}
ul {
list-style: none;
}
img {
border: 0;
}
body {
margin: 0;
text-align: center;
background: #b2b2b2;
}
.container {
width: 900px;
margin: auto;
border-top: solid 1px #000;
border-bottom: solid 1px #000;
background: #d6d6d6;
}
.container #banner_top {
border-left: solid 1px #000;
border-right: solid 1px #000;
width: 900px;
height: 106px;
background: url(http://www.tech-grid.com/test/images/banner_top.gif) no-repeat;
}
.container #banner_bottom {
border-left: solid 1px #000;
width: 900px;
height: 53px;
background: url(http://www.tech-grid.com/test/images/banner_bottom.gif) no-repeat;
}
.container #leftCol {
border: solid 1px #000;
border-top: 0;
float: left;
display: inline;
width: 131px;
background: #959595;
}
.container #content {
border: solid 1px #000;
margin: 8px 180px 0 140px;
text-align: left;
padding: 10px;
background: #959595;
}
.container #content h1 {
text-align: left;
font: 20px Serif;
}
.container #content h2 {
text-align: left;
font: normal 10pt Serif;
}
.container #content p {
text-align: left;
font: 12pt Serif;
}
.container #content img {
border: 1px solid #101010;
}
.container #rightCol {
border: solid 1px #000;
margin-top: 6px;
float: right;
display: inline;
width: 171px;
background: #959595;
}
.navTop {
height: 10px;
background: url(http://www.tech-grid.com/test/images/nav_top.gif) no-repeat;
}
.navCenter {
background: url(http://www.tech-grid.com/test/images/nav_center.gif) repeat-y;
}
.navBottom {
height: 6px;
background: url(http://www.tech-grid.com/test/images/nav_bottom.gif) no-repeat;
}
.navText {
text-align: left;
font: 10pt Serif;
}
.navText li {
background: url(http://www.tech-grid.com/test/images/nav_button.gif) no-repeat;
height: 18px;
margin: 0 0 3px 9px;
padding-left: 5px;
}
.navText a, a:active, a:visited {
color: #000;
text-decoration: none;
}
.navText a:hover {
color: #000;
text-decoration: underline;
}
.container #footer {
padding: 0 40px;
}
.container #footer p {
margin: 0;
padding: 10px 0;
}
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
Last edited by Mooofasa; 02-03-2008 at 04:38 AM..
|