Last active
January 1, 2018 22:46
-
-
Save geog4046instructor/bb8fc75f1d50d9d020fa to your computer and use it in GitHub Desktop.
Bootstrap 3 - Full-page 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
/* For Bootstrap 3. Create a full-page background image on the Bootstrap "Cover" template | |
* Cover template: https://getbootstrap.com/examples/cover | |
* CSS code credit: http://stackoverflow.com/questions/25556622/bootstrap-cover-template-where-to-place-image | |
*/ | |
body { | |
background: url(../img/background.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment