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

> > This raises a new question.  Wouldn't "text-align" be more 
> appropriately
> > called "horizontal-align"?  I mean, you might have non-text 
> items within
> > the element that you are applying the alignment to.
> 
> Because text-align only aligns inline content. 


No, text-align applies only to block level content.  vertical-align only
applies to inline.

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>

Should result in both lines being centered.




> It does not align block
> children.  So something like:
> 
> <div style="text-align: center">
> <div style="width: 50%">Text</div>
> </div>
> 
> Would center "Text" within the inner div (by inheritance) but 
> not center
> the inner div within the outer one (because a div is block content).
> 
> Boris
> -----------------
> 617-864-9910
> -----------------
> Computer, n: 
>    A device to speed up and automate errors
> 
> 

Received on Wednesday, 24 October 2001 14:27:41 UTC