Skip to content

Instantly share code, notes, and snippets.

@tyv
Created May 22, 2012 15:14
Show Gist options
  • Save tyv/2769689 to your computer and use it in GitHub Desktop.
Save tyv/2769689 to your computer and use it in GitHub Desktop.
Untitled
div
{
position: relative;
width: 400px;
height: 400px;
border: 1px solid red;
}
div div
{
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
margin: auto;
width: 10px;
height: 10px;
background: red;
}
<div><div></div></div>
{"view":"separate","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