- From: Sampo Syreeni <decoy@iki.fi>
- Date: Thu, 25 Oct 2001 00:24:00 +0300 (EEST)
- To: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>
- cc: "'www-style@w3.org'" <www-style@w3.org>
On Wed, 24 Oct 2001, Peter Foti (PeterF) wrote: >Looking at your example, I would think that the correct way to do it >would be to add this to your whole1 style: > >text-align: center; >vertical-align: middle; Of course. I wasn't talking about horizontal alignment, at all. Besides, the approach is borrowed from who-knows-where, in its entirety. >Of course, it doesn't work. The text-align seems to work, but the >vertical-align is still top aligned. Yep. Most browsers get it wrong. Maybe even all of them. Don't you just hate incomplete implementations. >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. Nope. If you want to center the inner div horizontally, you would use explicit width and auto margins. Sampo Syreeni, aka decoy - mailto:decoy@iki.fi, tel:+358-50-5756111 student/math+cs/helsinki university, http://www.iki.fi/~decoy/front openpgp: 050985C2/025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
Received on Wednesday, 24 October 2001 17:24:10 UTC