"Full width Carousel"
Bootstrap 3.3.0 Snippet by mhjarjis

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 class="row"> <h2 class='text-center text-success'>BootStrap Carousel</h2> <div class="carousel slide" data-ride="carousel" id="myCarousel"> <ul class="carousel-indicators"> <li class="active" data-target="#myCarousel" data-slide-to="0"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> <li data-target="#myCarousel" data-slide-to="3"></li> </ul> <div class="carousel-inner"> <div class="item active"> <img src="http://fakeimg.pl/900x300/ff0000,128/000,255" class="img-responsive"> </div> <div class="item"> <img src="http://fakeimg.pl/900x300/ff0000,128/000,255" class="img-responsive"> </div> <div class="item"> <img src="http://fakeimg.pl/900x300/eee" class="img-responsive"> </div> <div class="item"> <img src="http://fakeimg.pl/900x300/ff0000,128/000,255" class="img-responsive"> </div> </div> <a href="#myCarousel" class="left carousel-control" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a href="#myCarousel" class="right carousel-control" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div> </div> </div>
.carousel .item { width: 100%; /*slider width*/ } .carousel .item img { width: 100%; /*img width*/ }

Related: See More


Questions / Comments:

nice

Ibrahim () - 7 years ago - Reply 0