Skip to content

Instantly share code, notes, and snippets.

@brianbroken
Last active April 5, 2019 09:18
Show Gist options
  • Save brianbroken/5471347 to your computer and use it in GitHub Desktop.
Save brianbroken/5471347 to your computer and use it in GitHub Desktop.
CSS: Transparent Background images
div {
width: 200px;
height: 200px;
display: block;
position: relative;
}
div:after {
content: "";
background: url(http://subtlepatterns.com/patterns/bo_play_pattern.png);
opacity: 0.5;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: -1;
}
@khanzadimahdi
Copy link

perfect solution :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment