- From: Jeffrey Yasskin <jyasskin@hotmail.com>
- Date: Wed, 24 Oct 2001 13:38:55 -0500
- To: <www-style@w3.org>
So nobody really understands the spec, even on this list. How much less likely is it that a beginning developer will understand it? There should be a non-normative section of CSS3 (and CSS2.1) giving techniques for table-less layouts. Two important cases are: the one discussed here, centering stuff vertically and horizontally; and 2- and 3-column-based layouts. Then the editors of CSS will be able to see whether CSS is a feasible replacement for tables. If CSS requires much more code or harder-to-read code than a table-based layout, CSS needs to be reconsidered. Jeffrey Yasskin > -----Original Message----- > From: www-style-request@w3.org > [mailto:www-style-request@w3.org] On Behalf Of Peter Foti (PeterF) > Sent: Wednesday, October 24, 2001 1:27 PM > To: 'www-style@w3.org' > Subject: 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:38:04 UTC