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

 >> This is something I don't understand.  If CSS doesn't "know" what the
>> size of the screen is, then how can it center horizontally?  I've never
>> understood just why there is such a lack of support for vertical
>> alignment, yet there's no problem with horizontal alignment.  They
>> should be treated the same in my opinion.
>> 
>> I don't know how Jesse would want to use it, but I can imagine wanting
>> to use it to put something in the center of a page.
>> 
>> Peter
>> 
> 
> Peter, i understand your frustration, so let me try and clarify what is
> taking place here. What we have is a clash between the ones mental model of
> the page and the actual model of the document.
> 
> With small document (one that doesn't fill up the browser window) set a
> border of a few pixels on the body. This should show what you're dealing
> with. The *body* is as wide as the window, but only as tall as it needs to
> be. This is often times shorter then the height of the browser window
> itself. The minimum height of the document is not the browser height. It's
> because of this that centering a box (div) inside of the containing box
> (body) would not center it in the "box" that is the browser opening.
> Therefore, in reality, CSS doesn't know about the height *or* the width of
> the browser, it just happens that the width of the document IS the width of
> the browser.
> 

ok, that makes sense to me, but lets ignore the page/window size issue for a
moment. What I really want, is some way to mimic the effect of the valign
attribute (used in tables) with div's/bock elements?


::john-paul

::content::structure::presentation::interpretation
::http://www.mmodule.com
::http://www.four09.org

Received on Wednesday, 24 October 2001 13:00:39 UTC