Last active
November 9, 2015 19:59
-
-
Save johhansantana/246ad395dc781c691a3f to your computer and use it in GitHub Desktop.
add background overlay css
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
.live-background { | |
background-image: url('http://placehold.it/1500x1200'); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
min-height: 100vh; | |
min-width: 100vw; | |
} | |
.overlay{ | |
position: absolute; | |
content:" "; | |
top:0; | |
left:0; | |
width:100%; | |
height:100%; | |
display: block; | |
background-color: rgba(0, 0, 0, 0.57); | |
z-index:0; | |
} |
Author
johhansantana
commented
Nov 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment