I am trying to make my image responsive.in web version it looks good but when I am trying to see my image in mobile version then it's not in responsive .please help me to find out the solution..
here is my HTML code
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="banner-bg">
<div class="banner-bg-item"><img src="img/banner-bg-1.jpg" style="max-width: 100%;" alt=""></div>
<div class="banner-bg-item"><img src="img/banner-bg-2.jpg" style="max-width: 100%;" alt=""></div>
<div class="banner-bg-item"><img src="img/banner-bg-3.jpg" style="max-width: 100%;" alt=""></div>
<div class="banner-bg-item"><img src="img/banner-bg-4.jpg" style="max-width: 100%;" alt=""></div>
</div>
</body>
</html>
and MY CSS file is
#banner .banner-bg .banner-bg-item .img{
max-width: 100%;height: auto;display:block;width:100%;
}
I am also try by using bootstrap and make my image class img-responsive but its not working..so please help me to find the solution