Skip to content

Instantly share code, notes, and snippets.

@ryndel
Created January 31, 2014 18:55
Show Gist options
  • Save ryndel/8740611 to your computer and use it in GitHub Desktop.
Save ryndel/8740611 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Center vertically with table layout</title>
<style>
#wrapper {display:table;}
#cell {display:table-cell; vertical-align:middle;}
</style>
</head>
<body>
<div id="wrapper">
<div id="cell">
<div class="content">
Content goes here
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment