Created
July 16, 2020 18:54
-
-
Save devwax/b12299c72b3a45c7bb21aa3e9928e1a8 to your computer and use it in GitHub Desktop.
Change the opacity of a background image
This file contains 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
<style> | |
.container { | |
min-height: 400px; | |
} | |
.bg-image-opacity-7 { | |
background-image: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)), url('/assets/images/bg-image.jpg'); | |
background-repeat: no-repeat; | |
background-size: cover; | |
background-position: center; | |
} | |
</style> | |
<div class="container bg-image-opacity-7"> | |
<p></p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment