View Single Post
  #4 (permalink)  
Old Apr 12th, 2007, 13:13
karinne's Avatar
karinne karinne is offline
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is there an alternitive to 'Float:Center'

Well ... you're problem is with this

Code: Select all
<div id="topimage"/>
<div id="mainlink"/>
<div id="maincontents"/> <div id="sidebar"/>
You can't do that. If they're empty just

Code: Select all
<div id="topimage"></div>

<div id="mainlink"></div> 
<div id="maincontents"></div>
<div id="sidebar"></div>
So basically the site is centered horizontally right? So ... create are wrapper div

How to cdenter your site horizontally

Then just float your #maincontents left and #sidebar to the right. Don't forget to give them widths too.

You might want to have a look at my sticky in the Beginners Resources section ... the same one as in my sig for examples on how to achieve 2-column layouts.
Reply With Quote