Associate
- Joined
- 14 Dec 2005
- Posts
- 563
- Location
- Dublin
Hi,
I want a 3 column layout, a left column for links, a center 'main content' column and then a right side links column again.
I have the left column and the middle column floated left, and the right column floated right. I'm setting percentage widths for each column.
This works fine in Opera and Firefox, but in IE the top of the right column starts at the bottom of the main content, so I have a giant gap on the right side and have to scroll down the entire content of the page to see the right column. Any ideas how to fix this?
Also, if I want to remove these columns in certain pages, is it possible to write the css code so that I can simply not code in the columns in the HTML, having the CSS auto center the main content div so it's 100% of the page?
Using this code for the moment:
#main_content {
background-color: #E5F2F1;
width: 60%;
height: 600px;
float: left;
background: #E5F2F1 url('images/i.gif') no-repeat center;
}
#left_col {
float: left;
width: 20%;
}
#right_col {
float: right;
width: 20%;
}
Within the left_col and right_cols are unordered lists containing links.
Cheers
I want a 3 column layout, a left column for links, a center 'main content' column and then a right side links column again.
I have the left column and the middle column floated left, and the right column floated right. I'm setting percentage widths for each column.
This works fine in Opera and Firefox, but in IE the top of the right column starts at the bottom of the main content, so I have a giant gap on the right side and have to scroll down the entire content of the page to see the right column. Any ideas how to fix this?
Also, if I want to remove these columns in certain pages, is it possible to write the css code so that I can simply not code in the columns in the HTML, having the CSS auto center the main content div so it's 100% of the page?
Using this code for the moment:
#main_content {
background-color: #E5F2F1;
width: 60%;
height: 600px;
float: left;
background: #E5F2F1 url('images/i.gif') no-repeat center;
}
#left_col {
float: left;
width: 20%;
}
#right_col {
float: right;
width: 20%;
}
Within the left_col and right_cols are unordered lists containing links.
Cheers
