You are here: Re: Displaying content at the bottom of the browser « HTML « IT news, forums, messages
Re: Displaying content at the bottom of the browser

Posted by Ben C on 06/12/07 16:13

On 2007-06-12, Eric C. <eric@notarealaddy.com> wrote:
> Hello
>
> In the old days, in quirks mode, it was possible to get content to
> appear at the bottom of the browser window by doing this:
>
><table width="100%" height="100%">
> <tr valign="top">
> <td>foo</td>
> </tr>
> <tr valign="bottom">
> <td>bar</td>
> </tr>
></table>
>
> Is there a way to do this using div elements and CSS?

Use position: absolute in conjunction with bottom: 0 on a box near the
top of the document tree (so that the viewport is its containing block).

e.g.

<body>
...
<div style="position: absolute; bottom: 0">bar</div>
</body>

 

Navigation:

[Reply to this 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

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