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

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

From: Russell Grigaitis <russell.grigaitis@pre-print.com>
Date: Mon, 24 Aug 1998 11:39:04 -0600
Message-ID: <001601bdcf86$1657c4e0$aaa0a8c0@russellg.pre-print.com>
To: <www-style@w3.org>
>>> 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.
>
> Makes perfect sense.  And I take it >align:left< is achieved
>via "margin-right:auto" and >align:right< via "margin-right:left".
>It's not exactly easy to find this information in the spec.
><http://www.w3.org/TR/REC-CSS2/visudet.html#q6> 


I gave this a try in IE4.0 and NN4.05 and it didn't work.
I have used the 'text-align' property; however, this does on work in NN.
http://www.w3.org/TR/REC-CSS2/text.html#alignment-prop

___________________________________________________________
Russell Grigaitis
Pre Print Incorporated
200, 12420 - 104 Avenue
Edmonton, AB  T5N 3Z9
(403) 488 - 6688
http://www.pre-print.com
Received on Monday, 24 August 1998 13:36:28 GMT

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