"Gallery with Modal"
Bootstrap 3.2.0 Snippet by Marnoweb

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Panel title</h3> </div> <div class="panel-body"> <div data-toggle="modal" data-target="#myModal" class="col-md-3 col-lg-3"> <figure> <figcaption> <h4>Header</h4> </figcaption> <img class="img-responsive" src="http://www.placehold.it/200.png" alt="img" title="image"/> </figure> </div> <div data-toggle="modal" data-target="#myModal" class="col-md-3 col-lg-3"> <figure> <figcaption> <h4>Header</h4> </figcaption> <img class="img-responsive" src="http://www.placehold.it/200.png" alt="img" title="image"/> </figure> </div> <div data-toggle="modal" data-target="#myModal" class="col-md-3 col-lg-3"> <figure> <figcaption> <h4>Header</h4> </figcaption> <img class="img-responsive" src="http://www.placehold.it/200.png" alt="img" title="image"/> </figure> </div> <div data-toggle="modal" data-target="#myModal" class="col-md-3 col-lg-3"> <figure> <figcaption> <h4>Header</h4> </figcaption> <img class="img-responsive" src="http://www.placehold.it/200.png" alt="img" title="image"/> </figure> </div> <!-- 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"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Modal title</h4> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div> </div> </div> </div>

Related: See More


Questions / Comments: