Hello,
Can someone kindly point out how I might get my content to line up correctly?
http://www.careyhart.net/index.php?page=08-8446
Thank you,
TJ
[Solved] floating content correctly
[Solved] floating content correctly
Last edited by Anonymous on Mon Jul 21, 2008 9:43 am, edited 1 time in total.
Re: floating content correctly
#menu_vert {float:left;
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: floating content correctly
As mark already stated, floating objects properly is the key.
use float: left; for the div sidebar
and float: right; for the div main (rather then adding "", keeps it much cleaner and easier to work with imho!)
and a thing I always do, is in the next div after (or in this case below the sidebar and the menu), add clear: both; or even better, the clearfix hack (Google for it, you'll find it).
use float: left; for the div sidebar
and float: right; for the div main (rather then adding "", keeps it much cleaner and easier to work with imho!)
and a thing I always do, is in the next div after (or in this case below the sidebar and the menu), add clear: both; or even better, the clearfix hack (Google for it, you'll find it).
Re: floating content correctly
They are using a default template but when the menu was put in the side bar it naturally goes full width until you tell it to float then it will clear the right side for the content, you don't have to float the sidebar or the content...
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: floating content correctly
Very true indeed. My bad.mark wrote: They are using a default template but when the menu was put in the side bar it naturally goes full width until you tell it to float then it will clear the right side for the content, you don't have to float the sidebar or the content...
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: floating content correctly
Topic closed, problem is solved.

