Skip to content

Instantly share code, notes, and snippets.

@Galibri
Created October 25, 2017 16:36
Show Gist options
  • Save Galibri/f01e68f9becea669f76e0f80c4f36393 to your computer and use it in GitHub Desktop.
Save Galibri/f01e68f9becea669f76e0f80c4f36393 to your computer and use it in GitHub Desktop.
<div class="background-image">
<div class="overlay"></div>
<div class="anything-any-text">
<h2>Any other texts goes here</h2>
</div>
</div>
<style>
.background-image {
position: relative;
}
.overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #a3db2b; /* Old browsers */
background: -moz-linear-gradient(top, #a3db2b 1%, #c96fce 100%);
background: -webkit-linear-gradient(top, #a3db2b 1%,#c96fce 100%);
background: linear-gradient(to bottom, #a3db2b 1%,#c96fce 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a3db2b', endColorstr='#c96fce',GradientType=0 );
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment