You are here: Re: 100% height container « HTML « IT news, forums, messages
Re: 100% height container

Posted by John Hosking on 05/04/07 16:54

rf wrote:
> "JD" <jd@example.net> wrote in message
> news:5a0dljF2m6i0sU1@mid.individual.net...
>> Hi
>>
>> Suppose I want a container that fills the entire height of the browser
>> window, regardless of the actual height.
>
> Why would you want something to exactly fill my browser canvas height? You
> don't know how high my canvas is. Nor how wide. My browser is not a piece of
> paper.

To make full use of the space you've allowed him[1]. And you're right;
he doesn't know how high your canvas is. If he did, he could just set
that height and be done.

Paper has nothing to do with it.

>
>> http://www.sarroukhs.f2s.com/test/
>
> Ah, you certainly don't know how wide my canvas is. You have arbitrarily
> guessed at about 900 pixels.

If by "about 900 pixels" you mean 850 pixels, as in the source/CSS, then
yes, that's what he's picked. But since this is obviously just a sample
page, I don't think we need assume that the 850px is meant to be the
entire page width. Although if it is, then we will gang together and
stone the infidel OP until he breathes his last.

> Why not just let your page scale to whatever browser canvas I have allotted
> to it?

Preach it, brother. Fluid design is the True Path.

[1]Where "him" and "he" imply "her" and "she" as appropriate.
--
John
Fixed width, if not heresy, is at least frowned upon.

 

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

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