Posted by Simon on 03/18/06 13:55
>>As you can see my footer is not at the bottom.
>
>><div id="Layer2" style="position:absolute; left:408px; top:420px;
>>width:377px; z-index:3;">
>
> And this is why. Absolutely positioned elements are taken out of the
> document flow and hence are not taken into consideration when laying
> out the rest of the page. If your absolutely positioned element
> contains flexible content (i.e. any text) you can't give it a fixed
> height. Hence you can't know how tall it will be and hence you can't
> reliably position anything below it on the page.
>
> So if you want a footer, you need to stop using absolute positioning.
>
That is a problem, I cannot ask my users to stop using absolute positioning.
It might be a long shot, but would JavaScript be able to tell me the height
of a document so I can position the footer using absolute position myself.
Would you know if JavaScript can do that?
Simon.
Navigation:
[Reply to this message]
|