Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A Pen by Ahmad Awais.
<div class="bg-img"></div>
html, body {
width: 100%;
height: 100%;
.bg-img {
width: 100%;
height: 100%;
background: url('') center center no-repeat;
background-size: cover;
&:before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image: linear-gradient(to bottom right,#35ad68,#fff);
opacity: .8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment