I have a sidebar within the content div, and for some reason the Content div doesn't go all the way that the inside sidebar does, the sidebar stretches out of the box. Is there any way to fix this?
Your clearing should happen after and next to the floated box. your content doesn't have any float properties and so your footer is not clearing anything. As a quick fix, you might want to add a float: left to your container. Or, you may want to add a clear class to your css and then add this after your sidebar:
<br class="clear" />
However, you better use a grid system. This whole layout you are using right now is a total mess if i want to be honest with you.
Why should I use a grid system? I'm sorry if that question seems stupid, I've never heard of gridsystems before. Are there any arguments against using it?
Just to throw another opinion in here, I don't use grid systems nor will I any time in the near future. I have my own snippets and things that I use to save time, but any time I've ever attempted a grid system in the past I just end up changing everything that's in it anyways.
I agree with Doc on this. While I design to a grid (in PS) I don't use a css grid system. But that's not to discredit Keyamoon's comment - some find a grid system invaluable.
To answer your question, you need to contain that float. Add overflow: hidden; to .content (not .wrapper) to do so.
Wow, thanks a lot. You have really helped me, both your ways seem to work. I'll probably don't use a grid system for something this simple though. Thanks a lot everyone!
Still, you might want to try adding overflow: hidden; to your wrapper.
However, you better use a grid system. This whole layout you are using right now is a total mess if i want to be honest with you.
glhf
To answer your question, you need to contain that float. Add overflow: hidden; to .content (not .wrapper) to do so.
http://css-tricks.com/forums/discussion/10722/clearing-floats-:-br-clear-all-...-:/#Item_6
also, there are many articles on the site on this subject.. Search "clearing floats".