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

Re: What should happen with auto margins?

From: Tom Gilder <tom@tom.me.uk>
Date: Sat, 1 Mar 2003 00:50:12 +0000
Message-ID: <5249852972.20030301005012@tom.me.uk>
To: www-style@w3.org

On Saturday, March 1, 2003, 12:07:54 AM, Ian Hickson wrote:
>    width: 20em; /* your preferred width */
>    max-width: 100%; /* prevent the width from exceeding the viewport */
>    margin: auto; /* center it horizontally */
> 
> ...should do the trick, and is not a hack, it's exactly the intended use
> of the properties.

It is a hack (well, not what I want anyway), as I want the element to
remain at a pre-determined fixed width for the moment, as I'm playing :)
Received on Friday, 28 February 2003 19:50:35 GMT

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