Div positioning and loading

hey guys

I am building a page and trying to do it without tables.

I have three main divs: header, main, footer.

I want the header and footer to load first and the main (that contains all the php) will load last. I’ve heard people say to use absolute positioning on the main div but then how do i get the footer to always fall under it since the main div may be a range of sizes?