|
Ok guys I think i figured it out. I am by no means an expert on this so please forgive any novice mistakes....
I wrote this, hopefully it can be expanded and improved upon and hopefully it will help out someone else!
Using nested divs to acheive an expanding (height) background as new content is added.
Set your background div to relative (positioning). Position it as you please and set
its min-height (to your desired normal (unexpanded) page height in px).
Note: Any more relative divs you add to the page will be included in the height math that governs the expansion of the background div. So set all divs other than the one you wish to use to expand the page to absolute.
Make sure the div you wish to use to expand the page is the first div nested inside the background div. If it is not first the expansion will not happen. Set its
postioning to "top: 0px;". Use padding to achieve the position you wish to offset it from the top of the page. Set bottom padding to create some distance between the end of the page and the end of the div.
As you add content to this div the page should expand.
Now add the rest of your page elements using absolute positioning.
Cheers,
Jim;]
Last edited by alpha_juno; 05-18-2006 at 07:38 PM..
|