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

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

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Wed, 2 Sep 1998 11:52:32 -0400
Message-ID: <031801bdd689$f295a940$9eacdccf@ix.netcom.com>
To: <braden@endoframe.com>, "'John T. Whelan'" <whelan@physics.utah.edu>, <www-style@w3.org>
>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>

Frank

-----Original Message-----
From: Braden N. McDaniel <braden@shadow.net>
To: 'John T. Whelan' <whelan@physics.utah.edu>; <www-style@w3.org>
Date: Saturday, August 22, 1998 5:50 PM
Subject: RE: The 'align' property (or lack thereof)


>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
>> Behalf Of John T. Whelan
>> Sent: Saturday, August 22, 1998 5:39 PM
>> To: www-style@w3.org
>> Subject: The 'align' property (or lack thereof)
>>
>>
>> I've been using the 'align' property to center blocks on the
>> page, and only recently discovered there's no such property in the CSS
>> spec, although NS 4.03 supports it.  'text-align' (which is not
>> supported by NS) can be used to align text within a block, but how is
>> one supposed to center an entire block within its containing block
>> without an 'align' property?
>
>You set both margin-left and margin-right to "auto". I don't know if any
>browsers support this yet.
>
>Braden
>
>
Received on Wednesday, 2 September 1998 11:49:40 GMT

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