This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ideas:centering [2008/02/02 16:13] – bkemper | ideas:centering [2008/02/02 16:26] – Corrected incorrect information bkemper | ||
---|---|---|---|
Line 74: | Line 74: | ||
== Other values: == | == Other values: == | ||
- | The default value of block-align is “left” (when the text-direction is LTR), or “start”, | + | The default value of block-align is “left” (when the text-direction is LTR) or “start”, |
When thought of this way (as a property whose default value describes the existing behavior of block alignment), it is clear how the property would interact with margins. Descendants with margins set to auto would not have their centered alignment overridden by the block alignment of their parent (whatever its value), just as they are not currently. Likewise, the current behavior makes it clear that an object with “block-align: | When thought of this way (as a property whose default value describes the existing behavior of block alignment), it is clear how the property would interact with margins. Descendants with margins set to auto would not have their centered alignment overridden by the block alignment of their parent (whatever its value), just as they are not currently. Likewise, the current behavior makes it clear that an object with “block-align: | ||
Line 87: | Line 87: | ||
Vertical centering currently cannot be done in CSS except for | Vertical centering currently cannot be done in CSS except for | ||
- | * absolutely-positioned elements (using margin: auto) | + | * absolutely-positioned elements |
* contents of table cells | * contents of table cells | ||