View Full Version : Layout Issues

11-01-2007, 03:58 AM
Ok so I probably have a messy (but valid!) setup with a CSS layout. I'm unsure exactly the best way to do this, but I basically have a sidebar that I want to hang to the right.

In most cases it does what I want.

Somecases it extends the mainBody div as the sidebar get longer than the content in the mainBody div.

And in other cases with my wordpress template, when the sidebar is larger than the mainBody div, it kicks one of the footer divs to the bottom.

Is there an issue with my CSS code, or should I scrap the layout and try to redo it with a different kind of layout? I'm not exactly sure what question to ask, but any ideas?

Thanks a bunch in advance!

11-01-2007, 04:13 AM
On the wordpress layout you need clear:both; on your footer.

As to the left column not extending enough or extending to far. Thats something you'll have to deal with because your content doesn't have any type of repeating background really. I guess you would make a matching curved corner containing element for your content and just make sure they are the same length. Perhaps get rid of the background color on the wrapper.

11-01-2007, 06:44 AM
On the wordpress layout you need clear:both; on your footer.

I've tried several ways of trying to clear the floats, but to no avail. I have put clear:both, clear:right in the #footer {}, I have put a blank div with style="clear:both" in various locations below the sidebar div, but it always cuts the page leaving the footer severed.

Would it be better to do a different type of layout? Is it ok to have mixed some floats and relative positioning, or is there a better way? I'm doing this to learn and haven't had the experience to know the best method.

11-01-2007, 12:04 PM

May be useful


11-01-2007, 05:10 PM
Thanks for that link, I need to spend some time with (after classes this week).

PS V for Vendetta is my favorite movie.