I have a carousel in my webpage where i am trying to make it responsive across all the devices.
My css declaration for 3 different devices so defined height accordingly as 350px, 255px,125px
.banner{
    max-width:100% !important;
    background:url(http://xxx/images/slide4.jpg) no-repeat;
    min-height:350px;
    background-size:cover;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;
    -ms-background-size:cover;
}
.banner{
    min-height:255px;
    max-width:100% !important;
    background:url(http://xxx/images/slide4.jpg) no-repeat;
}
.banner{
    min-height:125px;
    max-width:100% !important;
    background:url(http://xxx/images/slide4.jpg) no-repeat;
    }
My html code :
<div class="banner">                    </div>
Please advise how can i make my image to fit across all the devices. Thanks in Advance.