Created
August 3, 2015 08:18
-
-
Save goliver79/9ecd595dabb53882ac84 to your computer and use it in GitHub Desktop.
[CSS] Perfect background image with CSS3
This file contains hidden or 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
/* | |
https://css-tricks.com/perfect-full-page-background-image/ | |
*/ | |
.jumbotron { | |
height: 800px; | |
background: url('https://s3.amazonaws.com/codecademy-content/projects/broadway/bg.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