Skip to content

Instantly share code, notes, and snippets.

@A
Created April 18, 2014 11:41
Show Gist options
  • Save A/11039543 to your computer and use it in GitHub Desktop.
Save A/11039543 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
*/
.a {
width: 600px;
height: 400px;
background-color: #eba;
position: relative;
}
.b {
background: #bae;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 200px;
/*height: 200px;*/
margin: auto;
/*overflow: auto; */
}
<!-- content to be placed inside <body>…</body> -->
<div class="a">
<div class="b"></div>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment