Differences

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

Link to this comparison view

Next revision
Previous revision
devwiki:html [2014/10/24 03:25]
127.0.0.1 external edit
devwiki:html [2016/10/20 01:17] (current)
Line 108: Line 108:
  
  
 +===== center html content in both horizontal and vertical =====
 + 
 +<code css>
 +html, body {
 +    height: 100%;
 +}
 +
 +html {
 +    display: table;
 +    margin: auto;
 +}
 +
 +body {
 +    display: table-cell;
 +    vertical-align:​ middle;
 +}
 +</​code>​