If you copy the following HTML: http://pastebin.com/zBkzGysw into a text editor and test in a browser you will see that the yellow box has a massive height! This is because it has a class of clearfix and is clearing itself from the sidebar on the left hand side.
How can I stop this from happening?
I have tried using overflow:hidden; on the Middle column but that means if I have a table which has long content it will be cut off! Also why when doing this does using margin-left add margin on the right hand side?
Try applying
display: inline-block;on yourMiddlediv:You may also need to specify a
widthto it as well to get the layout you’re after.Update:
I’ve found a way to get the layout behaviour I think you’re after, but I’ve done it by stripping out the clearfix styles. Is this any closer?