Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
Created April 17, 2014 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ornerymoose/10959483 to your computer and use it in GitHub Desktop.
Save ornerymoose/10959483 to your computer and use it in GitHub Desktop.
currently the .innerdiv logo_red.png is affected by the opacity set in .outerdiv. How do I remove the opacity on the .innerdiv?
.outerdiv
{
margin-left: auto;
margin-right: auto;
margin-top: 40px;
width: 800px;
height: 150px;
background-color: white;
opacity: 0.5;
border-radius: 5px;
}
.innerdiv
{
background-image: url('logo_red.png');
background-repeat: no-repeat;
background-size: 290px 95px;
position: absolute;
top: 50px;
left: 0;
right: 0;
height: 95px;
width: 290px;
margin-left: auto;
margin-right: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment