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

What should happen with auto margins?

From: Tom Gilder <tom@tom.me.uk>
Date: Fri, 28 Feb 2003 17:44:22 +0000
Message-ID: <16524299403.20030228174422@tom.me.uk>
To: www-style@w3.org

If I have an element set to a width wider than the viewport and
margin-left/right set to auto, how should the element display?

For a quick example, see 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?

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

Tom Gilder
Received on Friday, 28 February 2003 12:44:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:06 UTC