Horje Website
Bs Modal Sm Stacked – Bootstrap Modal – Bootstrap Modals – Bootstrap Code

Bs Modal Sm Stacked – Bootstrap Modal

Bs Modal Sm Stacked - Bootstrap Modal - Bootstrap Modals - Bootstrap Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Bootstrap Example</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  10. </head>
  11. <body>
  12. <div class="container">
  13. <h2>Small Modal</h2>
  14. <!-- Trigger the modal with a button -->
  15. <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Small Modal</button>
  16. <!-- Modal -->
  17. <div class="modal fade" id="myModal" role="dialog">
  18. <div class="modal-dialog modal-sm">
  19. <div class="modal-content">
  20. <div class="modal-header">
  21. <button type="button" class="close" data-dismiss="modal">×</button>
  22. <h4 class="modal-title">Modal Header</h4>
  23. </div>
  24. <div class="modal-body">
  25. <p>This is a small modal.</p>
  26. </div>
  27. <div class="modal-footer">
  28. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </body>
  35. </html>



Try Your Self ->



Published:
October 4, 2020
Author:
admin
Category:
Bootstrap 3, Bootstrap Source Code
Views:
17

This article was posted in Bootstrap 3, Bootstrap Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2023