Created
April 17, 2014 07:03
-
-
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?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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