Forum Moderators: not2easy
Alternatively, you could try searching Webmaster World for 'Faux Columns' [google.com].
Alternatively, you could try searching for 'one true layout' at Position Is Everything (can't post the URL here).
My suggestion would be the Yahoo UI Library.
Yahoo UI Library's Grid Layout
<body>
<div id="header"></div>
<div id="content">
<div id="col1"></div>
<div id="col2"></div>
</div>
<div id="footer"></div>
</body>
The relevent css is:
#content {
overflow: hidden;
}
#col1, #col2 {
padding-bottom: 20000px;
margin-bottom: -20000px;
}
Obviously, you'll need more css than that (i.e., floating the columns), but what you see is the what extends the columns' background to equal height no matter which is taller. For more details see [positioniseverything.net ]'s article In search of the One True Layout [positioniseverything.net]."
Yahoo UI Library's Grid LayoutI just took a look at it and almost got sick. It uses so many extra divs that it's almost as bad as tables.
Uh... ok. There really aren't all THAT many extra divs if you're only doing a 2 column layout. Before you throw up, take a breath and try reading over it a little closer. It is a platform... it is flexible and will allow you to easily add/remove/nest columns. There are other advantages that it offers as well, like Source-Order Independence. You don't get any of that with the example you gave.
The following is all markup you need for the layout:<body>
<div id="header"></div>
<div id="content">
<div id="col1"></div>
<div id="col2"></div>
</div>
<div id="footer"></div>
</body>The relevent css is:
#content {
overflow: hidden;
}
#col1, #col2 {
padding-bottom: 20000px;
margin-bottom: -20000px;
}Obviously, you'll need more css than that (i.e., floating the columns), but what you see is the what extends the columns' background to equal height no matter which is taller. For more details see [positioniseverything.net...] article In search of the One True Layout."
Any ideas why this should happen. (I used 30000 and -30000 just to make sure.) Only about 200 px are cut off and the page as a whole is probably only about 1100px in height.
Clair
[edited by: Clair at 4:22 pm (utc) on Jan. 29, 2007]