Created
February 19, 2013 10:21
-
-
Save ramsesoriginal/4984654 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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