Page 1 of 1

A Two Column Layout

Posted: Tue Jul 22, 2008 2:57 am
by omniuni
Hi all, so here's a bit of a challenge.

I want to create a layout for a page using CSS and no tables. I want that layout to have a header, footer, and two columns. The footer should span the length of the page below both columns, and if EITHER column gets filled with info, it should stretch down, and push the footer down.

I've worked a couple of layouts that are similar to this, and there is usually one column that is much longer, so I can deal with using a float. But if I don't want to mess with that, and just want a simple, two column layout that works.....

Any ideas folks?

-OmniUni

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 9:51 am
by pickle
Do a Google search. What you're asking for isn't complicated & is quite common - there's bound to be lots of websites showing you how to do this.

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 10:23 am
by omniuni
Are there examples? Yes. Are any of them to my satisfaction? Not that I have seen yet.

That's why I'm asking here. I want to see what solution you all like to use.

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 11:12 am
by pickle
There are a million ways to skin a cat. There are a million+1 ways to do a 2 column layout. Try making it yourself & see what you come up with. If you have questions or problems, that's when you ask these boards.

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 4:04 pm
by omniuni
I have made several 2+ column layouts over time, but none act like I want. As I explained before, I want the footer to get pushed down by EITHER column.

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 4:22 pm
by pickle
If you set both columns to float (left or right), then set the footer to clear:both, that should pop it below both columns.

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 4:40 pm
by Eran
I believe what you are asking for was answered in this thread - viewtopic.php?f=13&t=85489

Re: A Two Column Layout

Posted: Tue Jul 22, 2008 4:53 pm
by omniuni
Thank you both! I searched around the forum a bit, and online, but for some reason, I have been unable to find a clear answer. I can't wait to try this out!

:D

Thanks again,

OmniUni