1 reply [Last post]
mooapo
mooapo's picture
Offline
newbie
Saginaw MI
Last seen: 9 years 11 weeks ago
Saginaw MI
Timezone: GMT-4
Joined: 2011-10-02
Posts: 9
Points: 16

I want to float three ' Div's ', >> Left Col, Main Content, Right Col <<, within a ' Wrapper Div ' .

Example :

<div id="wrapper">
  <div id="left_col"></div>
  <div id="main_content"></div>
  <div id="right_col"></div>
</div>

I understand floats, but the question is, would I float all left? Or float Left Col and Main Content to the left, and the Right Col right?

Also+++ Do I have my Div's within the Div Wrapper correctly in order? I ask because I see that some people always put everything floating to the first and then move towards left.

Thank you....

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 25 weeks 6 days ago
Joined: 2004-06-30
Posts: 9674
Points: 810

Floated elements should come

Floated elements should come before non-floated elements in the source. If you're floating everything, then yes, your source order is fine; however if you wanted only a main column and right column, and floated the right column, it would need to come first in the source.

Verschwindende wrote:
  • CSS doesn't make pies