Bootstrap carousel inside modal
DEMO
<!-- Button trigger modal --> <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Modal title</h4> </div> <div class="modal-body"> <div id="carousel-example-generic" class="carousel slide"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="http://placehold.it/900x500/666/" alt="" /> <div class="carousel-caption"> <h3>First slide label</h3> <p>First slide Caption.</p> </div> </div> <div class="item"> <img src="http://placehold.it/900x500/666/" alt="" /> <div class="carousel-caption"> <h3>Second slide label</h3> <p>Second slide Caption.</p> </div> </div> <div class="item"> <img src="http://placehold.it/900x500/666/" alt="" /> <div class="carousel-caption"> <h3>Third slide label</h3> <p>Third slide Caption.</p> </div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev"> <span class="icon-prev"></span> </a> <a class="right carousel-control" href="#carousel-example-generic" data-slide="next"> <span class="icon-next"></span> </a> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal -->
DEMO
Bootstrap carousel inside modal
Reviewed by Bhaumik Patel
on
7:30 AM
Rating: