Last active
May 2, 2023 09:43
-
-
Save TudorSfatosu/3fd082588d5ab81786e65f0c3ce6e28f to your computer and use it in GitHub Desktop.
Creating mutliple layers blending mode #html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Background Image Example</title> | |
<style> | |
.image-container { | |
background-image: url(triangle.png), linear-gradient(to bottom, #422039b8, #422039b8), url(bg.jpg); | |
background-blend-mode: soft-light, multiply, normal; | |
background-size: contain, auto, cover; | |
background-repeat: no-repeat, no-repeat, no-repeat; | |
background-position: 91% 0 , 0 0, 0 0; | |
height: 70vh; | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="image-container"> | |
<!-- Content goes here --> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment