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

>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 UTC