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

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 UTC