bootstrap crousel
<html>
<head>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<style>
.col-md-4{
display: inline-block;
margin-left:-10px;
}
.col-md-4 img{
width:100%;
height:auto;
}
body .carousel-control-prev-icon,
body .carousel-indicators li,
body .carousel-control-next-icon{
background-color:#000;
}
span.carousel-control-prev-icon {
position: relative;
bottom: 40px;
right: 40px;
}
span.carousel-control-next-icon {
position: relative;
bottom: 40px;
}
</style>
</head>
<body>
<h1>Bootstrap 4 carousel with description</h1>
<div class="container">
<div id="demo" class="carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner no-padding my-5">
<div class="carousel-item active">
<div class="col-xs-4 col-sm-4 col-md-4">
First
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
Second
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
Third
</div>
</div>
<div class="carousel-item">
<div class="col-xs-4 col-sm-4 col-md-4">
Four
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
Five
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
Six
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo" data-slide="prev">
<span class="carousel-control-prev-icon sp"></span>
</a>
<a class="carousel-control-next" href="#demo" data-slide="next">
<span class="carousel-control-next-icon sp"></span>
</a>
</div>
</div>
</body>
</html>
Comments
Post a Comment