Skip to content

Instantly share code, notes, and snippets.

@siygle
Created May 31, 2012 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siygle/2845287 to your computer and use it in GitHub Desktop.
Save siygle/2845287 to your computer and use it in GitHub Desktop.
Absolute Center
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<div id="logo">LOGO</div>
</div>
</body>
</html>
#container {
display: table;
position: relative;
width:100%;
height:100%;
position:absolute;
}
#logo {
display: table-cell;
position: relative;
vertical-align: middle;
text-align: center;
font-size: 200px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment