Click to See Complete Forum and Search --> : layout should come till end of page no matter what amt of content


bleustreak1
07-25-2009, 02:21 AM
i have created a site using only divs
now the thing is that the layout does not explode but it adapts.

if it has less content it only shows for that size suppose half the page

if there is a lot of content it will come till the end of the page.

now no matter what amount of content i have i want the layout to show till the end of the page


now if a fix a height for my div then adding more content makes my content go out of the layout.

so fixing a height does not work



how will i get the layout till the end of the page no matter what amt of content
can anybody please help me?

Verdagon
07-25-2009, 09:07 AM
One solution is to use this kind of technique, where a div is absolutely positioned in the unknown-sized-content:

<div style="padding-left: 200px;">
content, etc. the padding in this element leaves room for the sidebar.
<div style="position: absolute; left: 0; top: 0; bottom: 0; width: 200px;">
this is a left sidebar that expands with the page, because its absolutely attached to the left, top, and bottom of the content element.
</div>
</div>


I'm not sure I understood the question entirely, if that doesn't work can you post some code?