views:

27

answers:

3

I'd like to create a 3 column layout, with the middle being for all the content and menus and the other two being a solid background color.

I have something like this set up already, but the middle column doesn't extend to the bottom of the page. How can I get this middle column to extend to the bottom of the page?

+3  A: 

Since most pure-CSS answers to this question are not supported by browsers, your best best is often to use a background image for this. Create the image with the right sized columns and apply it to whatever contains all three columns on the page. Make sure that the image can be horizontally repeated, and it will do so all the way down to the bottom of the page, even if the middle column is not actually the right size.

Joseph Mastey
It's important to note that this method explicitly solves the problem of a content column that *may not* be as tall as the other columns. Using floats will give you three columns, but requires the content column to be the tallest to extend all the way (and then your other columns aren't full height).
Joseph Mastey
+1  A: 

This site is really helpful for this sort of thing:

http://css.maxdesign.com.au/floatutorial/tutorial0916.htm

But I think the basic idea is you create a float:left div and then a float:right div and then another div for the middle.

KenE
A: 

without code we can't really tell what's wrong. Here are some helpful links:

http://www.alistapart.com/articles/multicolumnlayouts/

http://www.alistapart.com/articles/fauxcolumns/

centr0