W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re: How is it possible to devise such a feeble system?

From: Chris Casciano <10sball@placenamehere.com>
Date: Wed, 24 Oct 2001 14:18:02 -0400
To: <www-style@w3.org>
Message-ID: <B7FC7E19.D611%10sball@placenamehere.com>
on 10/24/01 1:04 PM, Jesse McCarthy at mccarthy36@earthlink.net wrote:

> Chris, I think you would be best served by first clarifying your own mental
> model. 
> CSS does not "know" anything.  CSS is a language for instructing the user
> agent 
> what to do.

Yes, i agree.

> The user agent knows the width and height of the viewport.  Using
> CSS, you can instruct the user agent to format elements such as HTML and BODY
> to assume the entire width and height of the viewport.

My first reaction would be that you couldn't but i can't say i've ever spent
any effort looking into it before myself. After a few quick tests it seems
that it takes both elements set to height:100% to get the body (which it the
containing box that we are concerned with)

[body 100%] http://placenamehere.com/temp/bodycheck2.html
[html 100%] http://placenamehere.com/temp/bodycheck3.html
[both] http://placenamehere.com/temp/bodycheck4.html

and from this point we are stuck, as you mentioned below.

> My complaint is that
> once I've done that, CSS provides me no mechanism for centering content
> vertically within those elements.
> Is that not correct?

name://chris  aka://10sball http://placenamehere.com
Received on Wednesday, 24 October 2001 14:14:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:59 UTC