screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bootstrap 5 Modal Example</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"> <style> /* Add the custom CSS rules here */ .modal-body { max-height: 300px; overflow-y: auto; } </style> </head> <body> <!-- Button to trigger the modal --> <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal"> Open Modal </button> <!-- The Modal --> <div class="modal fade" id="myModal" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog "> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Bootstrap Scrollable Modal</h4> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <!-- Modal Body --> <div class="modal-body"> <!-- Add your content here --> <img src="https://www.sarkarinaukriexams.com/images/editor/1685126932elon-musk-g2eacd7b5f_640.png" class="img-fluid rounded" alt="Bootstrap Image"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae placerat magna. Nunc tempus, est sed dictum vestibulum, ipsum elit aliquet enim, vel rutrum sem nisi nec mauris.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae placerat magna. Nunc tempus, est sed dictum vestibulum, ipsum elit aliquet enim, vel rutrum sem nisi nec mauris.</p> <!-- Repeat the above paragraph as needed --> </div> <!-- Modal Footer --> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>