Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: How to stretch a short page down to screen bottom?

  • Subject: Re: How to stretch a short page down to screen bottom?
  • From: Steve Pugh <steve@pugh.net>
  • Date: Tue, 29 Mar 2005 15:09:05 +0100
  • Newsgroups: alt.html
  • References: <42495192$0$6969$9b622d9e@news.freenet.de> <d2bl2u$1anc$1@godfrey.mcc.ac.uk>
  • Xref: news.mcc.ac.uk alt.html:284196
Roy Schestowitz <newsgroups@schestowitz.com> wrote:
>metalive wrote:
>
>> I have a website with a simple table layout. On some pages, there is
>> only little text in my main content-<td> so the page/table ends half way
>> down the screen displaying the plain black backround. Is there a way
>> (preferably with CSS) to have short pages automatically stretch to the
>> bottom of the browser's display area?
>
>Add the following to your table:
>
>style="height: 100%;"

On its own that only works in quirks mode. In standards mode you need
to also set the height of the body and html elements to 100%.

	Steve

-- 
"My theories appal you, my heresies outrage you, 
 I never answer letters and you don't like my tie."  - The Doctor

Steve Pugh        <steve@pugh.net>        <http://steve.pugh.net/>

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index