1 reply [Last post]
mooapo's picture
Saginaw MI
Last seen: 10 years 31 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>

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's picture
Last seen: 40 weeks 11 hours ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

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