Created
June 4, 2017 18:05
-
-
Save abhishekdagarit/29504fa9735b78300680323663fd1efb to your computer and use it in GitHub Desktop.
Code for putting an image as banner in Bootstrap
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
#banner{ | |
background-image: url('images/mac.jpg'); | |
min-height: 800px; | |
background-position: center; | |
background-repeat: no-repeat; | |
background-size: cover; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
height:100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment