Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2012 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1566278 to your computer and use it in GitHub Desktop.
Save anonymous/1566278 to your computer and use it in GitHub Desktop.
Double Opacity
/**
* Double Opacity
*/
body{background:green;}
#baz{
opacity: 0.6;
}
#foo{
height:150px;
width:250px;
background:black;
position:absolute;
left:40%;
top:20%;
}
#bar{
height:40px;
width:40px;
background:black;
border-radius:40px;
position:absolute;
top:-15px;
left:-15px;
}
<div id="baz">
<div id="foo">
<div id="bar">
</div>
</div>
</div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment