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 12:13:29 -0600
Message-Id: <199710201805.MAA01319@underworld.bigpic.com>
To: "David Perrell" <davidp@earthlink.net>
CC: <www-style@w3.org>
> What does <DIV ALIGN=center> do that the style declaration
>  DIV { text-align: center }
> does not? I see no difference in MSIE or NSN. ALIGN is the HTML
> equivalent of text-align..

The former <DIV ALIGN=center> would make sure that all block-level 
elements are centered, and that the text-alignment is centered as 

A TABLE is the only thing that would be centered that is block level 
and doesn't just have text in it (as opposed to P or BLOCKQUOTE).
Additionally specifying <DIV ALIGN=CENTER> did not affect the 
alignment of the text in the table itself, should not <DIV 
STYLE="text-align: center"> center align all of the table text?

| Mortar: Advanced Web Development <http://bigpic.com/mortar/>
| Neil St.Laurent  neil@bigpic.com
| Big Picture Multimedia
Received on Monday, 20 October 1997 14:08:21 UTC

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