When adjusting the browser size, the images are resized which is great because it's exactly what I intended. However, the lower part of the black area does not resize accordingly. This results in a black area appearing under the images when viewed on a mobile browser. I would like to solve this issue but I am unsure about how to proceed. Any advice you can offer would be greatly appreciated.
You can find my page here.
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- for IE -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>Learning BxSlider</title>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
<link href="{% static "bxslider/jquery.bxslider.css" %}" rel="stylesheet">
<style type="text/css">
body {
color: red;
}
.container-fluid {
margin: 0;
padding: 0;
}
.row {
margin: 0;
padding: 0;
}
article#apple {
width: 100%;
}
div#berry {
height: 250px;
}
img.melon {
display: block; /* center */
margin: auto;
}
.bxslider li {
height: 250px;
}
h2.juice {
position: relative;
top: -250px;
z-index: 10;
}
.bx-wrapper .bx-viewport {
box-shadow: none;
border: none;
left: 0;
right: 0;
background-color: black;
}
</style>
</head>
<body>
<section class="container-fluid">
<article id="apple">
<div class="row" id="berry">
<ul class="bxslider">
<li id="orange" class="">
<img class="img-responsive melon" src="http://coolwebwindow.com/jquery-lab/wp-content/demo/bxslider_filter/images/photo01.jpg">
<h2 class="juice">Himawari</h2>
</li>
<li id="lemon" class="">
<img class="img-responsive melon" src="http://coolwebwindow.com/jquery-lab/wp-content/demo/bxslider_filter/images/photo04.jpg">
<h2 class="juice">Sumire</h2>
</li>
</ul>
</div>
<div>
<span>BxSlider is difficult in Design</span>
</div>
</article>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="{% static "bxslider/jquery.bxslider.min.js" %}" type="text/javascript" ></script>
<script type="text/javascript">
$(function(){
$('.bxslider').bxSlider({
auto: true
});
});
</script>
</body>
</html>
Using: Bootstrap
, jQuery
, BxSlider