Created
September 11, 2021 18:49
-
-
Save vsim1964/7a2aa074c197cd3f1c96a07e62b87b71 to your computer and use it in GitHub Desktop.
b-image & device pixel ratio
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
.page__header { | |
position: relative; | |
background-image: url(img/pic.png); | |
width: 1440px; | |
height: 800px; | |
background-size: 1440px 800px; | |
margin: 0 auto; | |
@media (min-resolution: 2dppx) { | |
background-image: url(img/pic@2x.png); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment