Created
October 25, 2017 16:36
-
-
Save Galibri/f01e68f9becea669f76e0f80c4f36393 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<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