Bootstrap display image in modal
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <body> <div class="container" style="padding:50px;"> <!----modal starts here---> <div id="tutorialsplaneModal" class="modal fade" role='dialog'> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Tutorialsplane Modal Demo : Image in Modal</h4> </div> <div class="modal-body"> <img src="http://tutorialsplane.com/wp-content/uploads/2016/07/fruits-863072_960_720.jpg" style="width:100%;height:100%;"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!--Modal ends here---> <a href="javascript:void(0);" class="" data-toggle="modal" data-target="#tutorialsplaneModal"> <img src="http://tutorialsplane.com/wp-content/uploads/2016/07/fruits-863072_960_720.jpg" height="200px;" width="200px"> <br> View Full Image </a> </div> </body> </html>
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> </head> <body> <div class="container" style="padding:50px;"> <!----modal starts here---> <div id="tutorialsplaneModal" class="modal fade" role='dialog'> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Tutorialsplane Modal Demo : Image in Modal</h4> </div> <div class="modal-body"> <img src="http://tutorialsplane.com/wp-content/uploads/2016/07/fruits-863072_960_720.jpg" style="width:100%;height:100%;"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!--Modal ends here---> <a href="javascript:void(0);" class="" data-toggle="modal" data-target="#tutorialsplaneModal"> <img src="http://tutorialsplane.com/wp-content/uploads/2016/07/fruits-863072_960_720.jpg" height="200px;" width="200px"> <br> View Full Image </a> </div> </body> </html>
Copyrights@tutorialsplane.com