Created
February 11, 2018 16:54
-
-
Save William-Hill/6d16c059ceaaf044154a1c674e16e674 to your computer and use it in GitHub Desktop.
Responsive 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
html{ | |
width: 100vw; height: 100vh; | |
} | |
body { | |
width: 100vw; | |
height: 100vh; | |
/*Replace with some_image with image url/path*/ | |
background: url("some_image.png"); | |
background-repeat: no-repeat; | |
background-position: center; | |
background-size: cover; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment