abhishekdagarit
6/4/2017 - 6:05 PM

Code for putting an image as banner in Bootstrap

Code for putting an image as banner in Bootstrap

#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%;
    }