FW: 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

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
> Behalf Of Andrew McFarland
> Sent: Wednesday, October 24, 2001 11:34 AM
> To: www-style@w3.org
> Subject: Re:Re: How is it possible to devise such a feeble system?
> 
> 
> At 10:00 24/10/2001 -0400, Jesse McCarthy wrote:
> >Using CSS how can I center the inner DIV
> >or really the text within the inner DIV horizontally and vertically?
> 
> I'm pretty certain you can't.
> 
> What you are wanting to do is center the text vertically in 
> the middle of 
> the screen (or window). I don't think CSS `knows' what size 
> the screen (or 
> window) is. Setting the height to 100% is 100% of the height 
> of the parent 
> element, not the screen (or window).
> 
> If you can explain where you want to use the effect we may be able to 
> suggest an alternative way of getting this to work for you.
> 
> Andrew
> 
> --
> Andrew McFarland
> UNITE Solutions
> http://www.unite.net/
> 
> 

Received on Wednesday, 24 October 2001 12:00:33 UTC