RE: Alignment property proposal

Problem of margin :auto :

- Cannot be used in a default style-sheet for <center> element, since it margins can be overwritten (see -moz-center for the FF proposal)
- Does not allow centering if the content (like an image) is larger than the containing block (browser will automatically left align)

- Markus

-----Original Message-----
From: Daniel Glazman [mailto:daniel.glazman@disruptive-innovations.com]
Sent: Tuesday, November 06, 2007 7:24 AM
To: Markus Mielke
Cc: www-style@w3.org; w3c-css-wg@w3.org
Subject: Re: Alignment property proposal

Markus Mielke wrote:

> ' alignment'
> Value:              left |center | right | inherit
> Initial:            left
> Applies to:         All elements
> Inherited:          Yes
> Percentages:        N/A
> Media:              visual
> Computed value:     as specified

Centering an element inside another one is currently done
applying 'margin: auto' ; how will your proposal and that
live together ?

</Daniel>

Received on Tuesday, 6 November 2007 15:44:48 UTC