W3C home > Mailing lists > Public > www-style@w3.org > September 1998

Re: The 'align' property (or lack thereof)

From: John T. Whelan <whelan@physics.utah.edu>
Date: Wed, 2 Sep 1998 10:40:33 -0600
Message-Id: <199809021640.KAA42482@einstein.physics.utah.edu>
To: www-style@w3.org
Cc: bckman@ix.netcom.com
>>You set both margin-left and margin-right to "auto". I don't know if any
>>browsers support this yet.
>
>They don't (although I havnt checked with the IE5 and Com 4.5)
>
>
>Just tested it in IE5 and Com4.5, and it still doesnt work.
>
>This 'hack' works though:
>
><DIV STYLE="text-align:center;"><IMG SRC="redtall.gif"></DIV>

	And in fact if you want to center an image by itself, you need
to put it inside a block-level element to satisfy HTML 4.0 strict
anyway.  (And specify ALT text, although that wasn't the point of the
example.)
					John T. Whelan
					whelan@iname.com
					http://www.slack.net/~whelan/
Received on Wednesday, 2 September 1998 12:40:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:56 GMT