CSS, 3 column layouts, max-width
June 17, 2006 10:52 AM
Subscribe
CSS, 3-column layout, max-width on the centre column, side columns "sticking" to the centre column. Possible?
What I'm trying to accomplish:
100% width header and footer, with 3 content columns.
Column 1 and column 3 are fixed-width and floated left and right.
Column 2 is liquid with fixed-width margins, allowing it to sit inbetween columns 1 and 2.
So far so standard.
The problem is I want to apply a max-width in ems to the centre column, so the line length doesn't get stupidly long. Whenever I try it, column 3 cleaves right (as it should, having been floated right) instead of cleaving to the centre column, where I'd like it.
So, any suggestions? Is there a better starting point than the float left/right + margins 3 column layout? Any tutorials or examples? (I can't be the only person to want to do this). Is there a more appropriate place to ask this question?
posted by Leon to computers & internet (8 comments total)
2 users marked this as a favorite
posted by FidelDonson at 11:28 AM on June 17, 2006