Is it possible to make a containing div (in this instance #mainBody) the height of the elements in it. Right now i have some contents of the div spilling out of the bottom. The problem is that some of the elements are absolutely positioned. So my question boils down to this. If I have a div containing text with a left padding of 200px and then I position a menu absolutely on the left side of the div, can I make the div that contains the text longer than the menu? If it is possible, would it then be possible to float an element on the right in the div and make the containing div as long as whichever element reaches further down the page?