nko
02-26-2005, 05:17 PM
Alright, I'm writing a web page. Lets say I have four sections on this one page. The layout looks like this:
First Section
Second Section(Left Aligned), Third Section(Right Aligned)
Fourth Section
No sidebars, nothing like that, just four areas of information. What I've tried doing so far is making the second section left aligned by making it a div with style="float:left". The third area, then, is a div with style="float:right". This works fine as long as I completely leave section four out, which I can't do. Section four wants to get in between the previous two sections. I've tried encapsulating the second & third sections in a parent div and making section four fit in its own div, as well as setting the width of 2 and 3 to 50% each (which just spits out a VERY funny lookin' page).
How do I make this layout come true? Is float entirely wrong for this purpose?
First Section
Second Section(Left Aligned), Third Section(Right Aligned)
Fourth Section
No sidebars, nothing like that, just four areas of information. What I've tried doing so far is making the second section left aligned by making it a div with style="float:left". The third area, then, is a div with style="float:right". This works fine as long as I completely leave section four out, which I can't do. Section four wants to get in between the previous two sections. I've tried encapsulating the second & third sections in a parent div and making section four fit in its own div, as well as setting the width of 2 and 3 to 50% each (which just spits out a VERY funny lookin' page).
How do I make this layout come true? Is float entirely wrong for this purpose?