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

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

From: Peter Foti (PeterF) <PeterF@SystolicNetworks.com>
Date: Wed, 24 Oct 2001 15:00:24 -0400
Message-ID: <A10A983C9DFBD4119F0300104B2EA6B7086004@ZIPPY>
To: "'www-style@w3.org'" <www-style@w3.org>
Ooooh!  I see.  I think I just misunderstood your original post.  :)
-Pete


> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
> Behalf Of Boris Zbarsky
> Sent: Wednesday, October 24, 2001 2:55 PM
> To: Peter Foti (PeterF)
> Cc: 'www-style@w3.org'
> Subject: Re: How is it possible to devise such a feeble system?
> 
> 
> > No, text-align applies only to block level content.  
> vertical-align only
> > applies to inline.
> 
> It only _applies_ to block content.  It _affects_ the way the inline
> children of the block are shown.
> 
> If you try your example in an actual browser, you should see that both
> lines _are_ centered, but the <div> elements about them are not.  They
> just have the width of the parent and the text is centered _within_
> them.
> 
> Try adding borders and a percentage width to the inner divs 
> to see what
> the layout actually looks like.  Then test several browsers, because
> some have a buggy implementation of text-align that aligns blocks and
> not just inlines.  :)
> 
> > For example, using this style sheet:
> > <style type="text/css">
> > .example1
> > {
> >    text-align: center;
> > }
> > </style>
> > 
> > 
> > with this code:
> > 
> > <div class="example1">
> >    <div>Text 1</div>
> >    <div>More text</div>
> > </div>
> 
> Boris
> -----------------
> 617-864-9910
> -----------------
> Jacquin's Postulate on Democratic Government:
> 
>    No man's life, liberty, or property are safe while
> the legislature is in session.
> 
> 
Received on Wednesday, 24 October 2001 15:01:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT