W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: What should happen with auto margins?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 28 Feb 2003 11:44:16 -0800 (PST)
To: Tom Gilder <tom@tom.me.uk>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.50.0302281142560.26931-100000@dhalsim.dreamhost.com>

On Fri, 28 Feb 2003, Tom Gilder wrote:
>
> http://tom.me.uk/2003/2/css-margin-auto.html.
>
> Currently both IE6 and Opera 7 don't allow the element to go off to
> the left, but Mozilla does. In my opinion the former option is a lot
> more sensible, but does it violate the specification?

Yes. Mozilla is correct. Opera7 and IE6 have a bug.


> In both cases the margins seem to get the same value (as the specs
> demand): just with Op7 and IE6 that value is zero.

No, in the case of Opera7 and IE6, the right margin becomes negative while
the left margin is zero, while in Mozilla's case the two margins are both
equal to the same negative value.

The spec is very clear that the two margins must be given the same value
in this case.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 28 February 2003 17:34:11 GMT

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