pippin62
05-25-2007, 07:44 AM
I've looked in vain for a solution to this, validated code and wasted hours of time. I want to create a simple layout consisting of a series of three columns nested inside one column of another series of three columns, resulting in a five column layout. With no white space or gaps between the columns. It works well in everything except IE6, which puts a margin either side of the nested divs, pushing the set of columns beneath the container. Any help would be hugely appreciated! My CSS is below…
body
{
margin: 0;
padding: 0;
font-size: 95%;
font-family: georgia, times, "times new roman", serif;
color: #000;
background-color: #fff;
}
#mainWrap {
width: 790px;
background-color: orange;
}
#mainWrapOne {
width: 178px;
background-color: green;
float: left;
}
#mainWrapTwo {
width: 459px;
background-color: red;
}
#threeColWrap
{
background-position: right;
width: 459px;
overflow: hidden;
}
#colOne
{
float: left;
width: 153px;
background-color: #333;
}
#colTwo
{
margin-left: 153px;
margin-right: 153px;
background-color: #666;
}
#colThree
{
float: right;
width: 153px;
margin: 0;
color: #000;
background-color: #ccc;
}
p {
margin: 0;
}
body
{
margin: 0;
padding: 0;
font-size: 95%;
font-family: georgia, times, "times new roman", serif;
color: #000;
background-color: #fff;
}
#mainWrap {
width: 790px;
background-color: orange;
}
#mainWrapOne {
width: 178px;
background-color: green;
float: left;
}
#mainWrapTwo {
width: 459px;
background-color: red;
}
#threeColWrap
{
background-position: right;
width: 459px;
overflow: hidden;
}
#colOne
{
float: left;
width: 153px;
background-color: #333;
}
#colTwo
{
margin-left: 153px;
margin-right: 153px;
background-color: #666;
}
#colThree
{
float: right;
width: 153px;
margin: 0;
color: #000;
background-color: #ccc;
}
p {
margin: 0;
}