LINKDING
Login
Shared bookmarks
Sort by
Added ↑
Added ↓
Title ↑
Title ↓
Apply
Tags
Flexible height vertical centering with CSS, beyond IE7 | 456 Berea Street
#centering
#css
#vertical
#webdesign
|
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.
13 years ago
|
View
Shared by
ttscoff
Previous
1
Next
User
Everyone
ttscoff
Apply
Tags
-css
-vertical
c
entering
w
ebdesign