Re: Center DIV

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"                                          /,   _.. \   _\  ;`._ ,.                         `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 4 July 2003 11:58:17 UTC