Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
ideas:centering [2008/02/02 16:13] bkemperideas:centering [2014/12/09 15:48] – external edit 127.0.0.1
Line 74: Line 74:
  
 == Other values: == == Other values: ==
-The default value of block-align is “left” (when the text-direction is LTR)or “start”, which would mimic current behavior of where blocks are drawn. A value of “right” or “end” (when the text direction is LTR) would mimic the current behavior of a RTL text direction. +The default value of block-align is “left” (when the text-direction is LTR) or “start”, which would mimic current behavior of where blocks are drawn. A value of “right” or “end” (when the text direction is LTR) would mimic the current block aligning behavior of a RTL text direction. 
  
 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: left” would still be subject to being centered if its right and left margins were set to auto, and thus, the property only affects the descendants of the block it is set upon.  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: left” would still be subject to being centered if its right and left margins were set to auto, and thus, the property only affects the descendants of the block it is set upon. 
Line 82: Line 82:
  
 ===== Vertical Centering ===== ===== Vertical Centering =====
 +
  
 ==== Problems ==== ==== Problems ====
Line 87: Line 88:
 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 replaced elements (using margin: auto)
   * contents of table cells   * contents of table cells
  
 
ideas/centering.txt · Last modified: 2021/10/01 15:22 by fantasai
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki