- Date added
-
April 23, 2011, 5:19 a.m.
- Description
- The CSS isn’t very complicated either. First, the width and height of the html and body elements are set to 100% to make them fill the viewport. After that, the html element is set to display:table to make it behave like a table. The body element is then told to behave like a table cell and to vertically align its content in the middle.