Skip to content

Instantly share code, notes, and snippets.

@ramsesoriginal
Created February 19, 2013 10:21
Show Gist options
  • Save ramsesoriginal/4984654 to your computer and use it in GitHub Desktop.
Save ramsesoriginal/4984654 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
*/
.container {
width: 800px;
height: 800px;
position: relative;
}
.center
{
display: block;
min-width: 10px;
}
.outer {
top: 50%;
position: absolute;
height: 100%;
}
.middle {
position: relative;
min-height: 10px;
}
.inner {
top: -50%;
position: absolute;
min-height: 10px;
}
<!-- content to be placed inside <body>…</body> -->
<div class="container outer">
<div class="center outer">
<div class="center middle">
<div class="center inner">
test
</div>
</div>
</div>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment