I’m having this problem with page layout that I’ve been battling for too long to continuing looking at sanely. The overall page layout is a standard two-column: a main column with one narrow one on the right (with float: right) and the remainder of the page being the main area.
Now, within the main area, I have a piece of content that needs to float along the right edge of the main area – which is fine. However then I need to put some content below the floating part in the main area, yet not below the big right column – and I just can’t figure out how to do it.
Here’s the jsfiddle with what I’m trying to do: http://jsfiddle.net/rx7Pd/
Any help is greatly appreciated.
Add
overflow: autooroverflow: hiddento the main container.This is a common fix related to clearing floated divs. You can find some info here and here.
If you use this fix on the parent element too, you can get rid of the ugly clearing div at the bottom of HTML code. Just see: