Skip to content

Instantly share code, notes, and snippets.

@cezarsa
Created September 26, 2012 18:57
Show Gist options
  • Save cezarsa/3789851 to your computer and use it in GitHub Desktop.
Save cezarsa/3789851 to your computer and use it in GitHub Desktop.
Untitled
.area {
background: crimson;
width: 200px;
height: 200px;
position: relative;
}
.a {
position: absolute;
top: 10px;
left: 10px;
width: 100px;
height: 100px;
background: white;
z-index: 10;
opacity: 0.9;
}
.b {
position: absolute;
top: 20px;
left: 20px;
width: 20px;
height: 20px;
background: gray;
z-index: 5;
opacity: 0.5;
}
<div class="area">
<div class="a"></div>
<div class="b"></div>
</div>
{"view":"split","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