Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created April 17, 2012 06:45
Show Gist options
  • Select an option

  • Save ryanseddon/2403955 to your computer and use it in GitHub Desktop.

Select an option

Save ryanseddon/2403955 to your computer and use it in GitHub Desktop.
Untitled
html, body {
display: table;
height: 100%;
width: 100%;
}
body {
display:table-cell;
vertical-align:middle;
text-align: center;
}
div {
margin: 0 auto;
width: 100px;
height: 50px;
border: 1px solid;
transform: translateY(-50%);
}
<div>Blah</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment