Skip to content

Instantly share code, notes, and snippets.

@Shpigford
Created July 9, 2012 16:41
Show Gist options
  • Save Shpigford/3077508 to your computer and use it in GitHub Desktop.
Save Shpigford/3077508 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
*/
.outter {
background:red;
padding:5px;
position:relative;
}
.middle {
background:green;
padding:5px;
}
.middle:before {
position:absolute;
content:'';
width:50px;
height:50px;
background:pink;
}
.inner {
background:yellow;
padding:5px;
}
<div class="outter">
Outter
<div class="middle">
Middle
<div class="inner">Inner</div>
</div>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment