Skip to content

Instantly share code, notes, and snippets.

@ashish173
Created September 19, 2017 14:40
Show Gist options
  • Save ashish173/6ece415f02c386106adc517f90778793 to your computer and use it in GitHub Desktop.
Save ashish173/6ece415f02c386106adc517f90778793 to your computer and use it in GitHub Desktop.
happy point
<div class="bg-img"></div>
html, body {
width: 100%;
height: 100%;
}
.bg-img {
width: 100%;
height: 100%;
background: url('https://unsplash.it/900/900') center center no-repeat;
background-size: cover;
&:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #002f4b;
opacity: 0.7;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment