"Untitled"
Bootstrap 4.1.1 Snippet by Adeelahmad

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <meta name="viewport" content="width=device-width, initial-scale=1"> <div class="container"> <div class="row mb-4"> <div class="col text-center"> <a href="#" class="btn btn-lg btn-success mt-5" data-toggle="modal" data-target="#basicModal">Click to open Modal</a> </div> </div> </div> <!-- basic modal --> <div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Modal</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> <img src="https://jmd2ficarl.execute-api.us-east-2.amazonaws.com/600x0/items/eed9d397cbd67ad03fd2630e57a1bd99.jpg" /> </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>
.modal-body img{ display:inline-block; width:150px; heigh:150px; margin-right:10px; } .modal-body{ overflow-x: scroll; overflow-y: hidden; height: 150px; white-space:nowrap; }

Related: See More


Questions / Comments: