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

Re: With CSS how does one ALIGN block-level elements?

From: Neil St.Laurent <neil@bigpic.com>
Date: Mon, 20 Oct 1997 08:52:03 -0600
Message-Id: <199710201444.IAA01307@underworld.bigpic.com>
To: Bert Bos <Bert.Bos@sophia.inria.fr>
CC: www-style@w3.org
> Centering or right-aligning block-level elements can be done by
> setting the appropriate margins to 'auto', and setting 'width' to

Okay that makes sense... but I'm guessing it's too much to expect 
that this actually works in any of the browsers...

> You cannot set it on the DIV, unless you know already what the width
> of the table will be; the width of the DIV is not dependent on the

Knowing that there is no way to get the exact behaviour of what <DIV 
ALIGN=CENTER> would do then, is there?  The best that can be done is 
to text-align center and make all it's contents inline and do each 
one with a separate DIV to make new block-level elements?
| Mortar: Advanced Web Development <http://bigpic.com/mortar/>
| Neil St.Laurent  neil@bigpic.com
| Big Picture Multimedia
Received on Monday, 20 October 1997 10:47:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:45 UTC