Skip to content

Instantly share code, notes, and snippets.

@A
Created April 18, 2014 11:40
Show Gist options
  • Save A/11039478 to your computer and use it in GitHub Desktop.
Save A/11039478 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: #eba;
position: relative;
}
.b {
background: red;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 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