Reply to Re: Absolute bottom of the page.

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация