Skip to content

Instantly share code, notes, and snippets.

@davidmerrique
Created January 25, 2012 15:48
Show Gist options
  • Save davidmerrique/1676868 to your computer and use it in GitHub Desktop.
Save davidmerrique/1676868 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body { background: #fff; height: 100%; }
.icon {
position: absolute;
top: 50%;
left: 50%;
margin-top: -100px;
width: 100px; height: 100px;
text-align: center;
}
.avatar {
position: relative;
border-radius: 100%;
}
<!-- content to be placed inside <body>…</body> -->
<div class="icon">
<span>David Merrique</span>
<img class="avatar" src="http://placehold.it/100x100" />
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment