Last active
August 27, 2022 19:07
-
-
Save vsim1964/1ccb7339d689377f31cd802047d38489 to your computer and use it in GitHub Desktop.
Cover. Фиксированный бекграунд
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
.bg-fixed { | |
width: 100%; | |
height: 100vh; | |
background: #333 url('img/mountains.jpg'); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
background-attachment: fixed; | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment