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
ideas:centering [2008/02/02 16:17] bkemperideas:centering [2021/10/01 15:22] (current) – [Centering Blocks] fantasai
Line 3: Line 3:
 A common request is the ability to center blocks. CSS has some capabilities for this, however they are very limited, especially in the vertical direction. A common request is the ability to center blocks. CSS has some capabilities for this, however they are very limited, especially in the vertical direction.
  
- +<note> 
 +Update: More powerful alignment capabilities have now been added to CSS in the [[https://www.w3.org/TR/css-align/|Box Alignment module]]. 
 +</note>
  
 ===== Horizontal Centering ===== ===== Horizontal Centering =====
Line 82: Line 83:
  
 ===== Vertical Centering ===== ===== Vertical Centering =====
 +
  
 ==== Problems ==== ==== Problems ====
Line 87: Line 89:
 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.1201997849.txt.gz · Last modified: 2014/12/09 15:48 (external edit)
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki