Skip to content

Instantly share code, notes, and snippets.

@brito
Created July 23, 2014 04:19
Show Gist options
  • Save brito/12d1cdff83c72bee6c12 to your computer and use it in GitHub Desktop.
Save brito/12d1cdff83c72bee6c12 to your computer and use it in GitHub Desktop.
find your center
/* find your center */
html, body { height:100%; margin:0; text-align:center }
body:before { content:''; vertical-align:middle; background:red; height:100%; display:inline-block }
[id]:before { content:attr(id) }
:target:before { content:attr(href) }
<a href=#center id=center></a>
// alert('Hello world!');
{"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