View Single Post
  #4 (permalink)  
Old Nov 14th, 2006, 05:58
Powderhound Powderhound is offline
Up'n'Coming Member
Join Date: Aug 2006
Location: Australia
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with float:left float:right

I don't know if this will help but i just had an alignment problem with floats.
see my site www.skiaustralia.abshost.net . The floats weren't sitting next to each other when assigned these properties.
Code: Select all
#sidebar    {padding: 0 10px 10px 10px;
                   float: left;
                   width: 110px;
}

#insidemain    {width: 550px;
                        float: right;
}
so i had to put this in my html under the floats. and it fixed them up
HTML: Select all
<!-- CLEAR BOTH FLOAT. THIS IS IMPORTANT! IF YOUREMOVE THIS LINE, YOU'LL END UP SCREWING THE CONTENT AND THE SIDEBAR COLUMN -->
<div style="clear: both;">
</div>
<!-- END FLOAT CLEANER -->    
hope this will help

Last edited by Powderhound; Nov 14th, 2006 at 06:00.
Reply With Quote