"carousel with indicators by lavan"
Bootstrap 3.0.0 Snippet by lavan

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div id="myCarouselbanner" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarouselbanner" data-slide-to="0" class=""></li> <li data-target="#myCarouselbanner" data-slide-to="1" class=""></li> <li data-target="#myCarouselbanner" data-slide-to="2" class="active"></li> <li data-target="#myCarouselbanner" data-slide-to="3"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item"> <img src="https://ik.imagekit.io/bfrs/tr:w-1349,h-400,pr-true,cm-pad_resize,bg-FFFFFF/image_shibz/data/Ab-Milega-Kuch-Apna_4.jpg" width="100%" class="img-responsive" alt="Chania"> </div> <div class="item"> <img src="https://ik.imagekit.io/bfrs/tr:w-1349,h-400,pr-true,cm-pad_resize,bg-FFFFFF/image_shibz/data/Ab-Milega-Kuch-Apna_4.jpg" width="100%" class="img-responsive" alt="Chania"> </div> <div class="item active"> <img src="https://ik.imagekit.io/bfrs/tr:w-1349,h-400,pr-true,cm-pad_resize,bg-FFFFFF/image_shibz/data/Ab-Milega-Kuch-Apna_4.jpg" width="100%" class="img-responsive" alt="Flower"> </div> <div class="item"> <img src="https://ik.imagekit.io/bfrs/tr:w-1349,h-400,pr-true,cm-pad_resize,bg-FFFFFF/image_shibz/data/Ab-Milega-Kuch-Apna_4.jpg" width="100%" class="img-responsive" alt="Flower"> </div> </div> <!-- Left and right controls --> <a class="left carousel-control" href="#myCarouselbanner" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#myCarouselbanner" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div>
.left.carousel-control { right: 30px; left: 0px; top: 45%; background: none; } .carousel-control { width: 30px; height: 30px; top: -35px; } .left.carousel-control { right: 30px; left: inherit; } .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { font-size: 16px; background-color: #c91a29; line-height: 30px; text-shadow: none; height: 40px; padding: 5px; width: 40px; border-radius: 50px; color: #fff; border: 1px solid #c91a29; } .left.carousel-control { right: 30px; left: 0px; top: 45%; background: none; } .carousel-control.right { right: 0px; background: none; left: auto; top: 45%; background-image: none; background-image: none; background-image: none; background-image: none; background-repeat: repeat-x; }

Related: See More


Questions / Comments:

Carousel with indicators

lavan () - 1 year ago - Reply 0