- From: Tom Gilder <tom@tom.me.uk>
- Date: Sat, 1 Mar 2003 00:50:12 +0000
- 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 UTC