For a while now i've been creating all my layouts using DIVs and CSS instead of tables.. Although I've only ever had one main problem which I can't solve - this being it.
What I want to be able to do is have two DIVs next to each other, like in the image below, one for the main the content and the other for the navigation.. like the sidebar to the right on this site.

I've tried using absolute posistioning but then the problem is the nav and main area have to be set at a certain height and then use overflow, which adds the scrollbars to these areas, to be able to display the footer DIV underneath.. maybe theres a way around this I dont know?
So Basically what I want to be able to do is have it so the main content and navigation DIV can be any height.. depending on whats inside of them.. and then the footer DIV is always displayed at the bottom. So the footer always remains at the bottom regardless of which DIV, main or nav, is larger. Like in the examples below.

I know this could easily be achieved using tables.. but I would rather do it using simple just CSS.
Hope this makes sense.. this would off a GREAT help if I can finally understand this.
Thanks in advance.
|