Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another layout question from me 1

Status
Not open for further replies.

carlg

Programmer
Jun 23, 2004
88
US
OK, Let's say I have 8 DIV sections on my page.

I want the 8 sections to float into 2 separate columns (kind of like msn.com)

Do I need a DIV section for each column and then the 8 sections nested in those or is there another way to do it?

What is the proper way?

Thanks

 
Code:
<div id="columnLeft">
  <div class="contentBox" id="moneyBox">
   ...
  </div>
  <div class="contentBox" id="newsBox">
   ...
  </div>  
  ...
</div>
<div id="columnRight">
  <div class="contentBox" id="sportsBox">
   ...
  </div>
  <div class="contentBox" id="horoscopeBox">
   ...
  </div>  
  ...
</div>
Something like this. Use css to style those containers based on their ids and classes.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top