Skip to content

Instantly share code, notes, and snippets.

@plindberg
Created February 24, 2012 14:09
Show Gist options
  • Select an option

  • Save plindberg/1901141 to your computer and use it in GitHub Desktop.

Select an option

Save plindberg/1901141 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
*/
#o {
border:1px solid hotpink;
width: 200px;
height: 200px;
position: relative;
}
#w {
display: table;
border-radius: 30px;
border: 5px solid blue;
background-color: blue;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
}
#a, #b {
display: table-cell;
width: 100px;
height: 100px;
}
#a {
margin-right: -5px;
}
#b {
margin-left: -5px;
}
<!-- content to be placed inside <body>…</body> -->
<div id=o>
<div id=w>
<div id=a></div>
<div id=b></div>
</div>
</div>
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment