Skip to content

Instantly share code, notes, and snippets.

@johhansantana
Last active November 9, 2015 19:59
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 johhansantana/246ad395dc781c691a3f to your computer and use it in GitHub Desktop.
Save johhansantana/246ad395dc781c691a3f to your computer and use it in GitHub Desktop.
add background overlay css
.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;
}
@johhansantana
Copy link
Author

<section class="live-background">
    <div class="overlay"></div>
</section>

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