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

Re: Center DIV

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 4 Jul 2003 08:58:37 -0700 (PDT)
To: Afternoon <afternoon@uk2.net>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.56.0307040855470.9100@dhalsim.dreamhost.com>

On Fri, 4 Jul 2003, Afternoon wrote:
>
> For aligning blocks within blocks macro properties, I think something
> like the following was suggested a couple of weeks back and seems ideal
> to me:
>
> block-align: center	=	margin-left:auto; margin-right:auto;
> block-align: left		=	margin-left:0; margin-right:auto;
> block-align: right		=	margin-left:auto; margin-right:0;

You can do this now with just:

   centering:     margin: auto;
   left:          margin: 0;
   right:         margin-left: auto;

I don't really see the value of having "macro" propoerties, especially if
they're going to be longer than the equivalent existing CSS1.


> How could the block being aligned be instructed to shrink wrap it's
> contents? Is this the intent of the proposed "intrinsic" and
> "min-instrinsic" keywords for the width property. If so, excellent.

Pretty much.

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

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