Bootstrap Tutorial

Bootstrap Fixed Navbar | Sticky Top | Sticky Header Bootstrap CDN 5.3, 5.2, 4.6, 4.3, 3.4, 3.3 (New Links) | Bootstrap CDN 5, 4, 3 File Download Bootstrap 5 Modal Disable Outside Click Bootstrap Horizontal and Vertical Divider Bootstrap Modal Pass data Dynamically Bootstrap Confirm Delete Modal | Popup Bootstrap Add Space Between Rows | Margin Bootstrap Remove Modal Background Bootstrap Make Table Row Clickable Bootstrap Change modal background color Bootstrap Center Align Form Bootstrap Show Image in Modal | Popup Bootstrap Button Icon with Text Bootstrap Scrollable Modal Bootstrap Image Center Align Bootstrap Dropdown with Icon Bootstrap Get Checkbox checked value Bootstrap Uncheck radio Button Bootstrap Set Radio button default checked or selected Bootstrap Radio Button Validation Bootstrap Enable Disable Radio Button Bootstrap Radio Button Checked Event Bootstrap get radio button checked or selected value Bootstrap Disable Enable Button on Click Bootstrap Tooltip on Input Field Elements Bootstrap Fixed Footer Bootstrap Image Upload | file Upload Bootstrap Modal on page load Bootstrap Login Form Template Bootstrap Add Search icon with Search bar Bootstrap button tooltip on hover Bootstrap Icons CDN Latest Version (1.11.3) Bootstrap Tabs Panel Pass dynamic content Bootstrap Change Dropdown Menu Background Color Bootstrap Avoid Dropdown Menu to close menu items on clicking inside Bootstrap Table Remove Border Bootstrap Modal Example Bootstrap Center Align Input Field Bootstrap Change Icon Color Bootstrap Text Align Center | Middle Bootstrap Remove all Rounded Corners Bootstrap Alerts Example Bootstrap Alert with Icons Bootstrap Scroll to Top Button Bootstrap Button Loading Spinner Bootstrap Check if Modal is Shown or Hidden Bootstrap Dropdown Button Change Text on Selection Bootstrap Remove offcanvas Backdrop Bootstrap Textarea Height Auto Resize Bootstrap selectpicker Get Selected Value Glyph Trash Icon

Bootstrap Scrollable Modal

Bootstrap Scrollable Modal:A Bootstrap scrollable modal is a type of modal window that allows content to be displayed within a fixed-size container with a scrollable area. It combines the features of a modal dialog box and a scrollable element. This means that when the modal contains more content than can fit within its fixed size, a scrollbar is added, allowing users to scroll and view the hidden content. Bootstrap provides built-in CSS classes and JavaScript functions to create a scrollable modal easily. By implementing a Bootstrap scrollable modal, developers can present large amounts of information in a structured and user-friendly manner.

Profile Photo

Abhishek Yadav (SD) SDE of FAI

Feedback

written
Profile Photo

Anil Kumar (Expert) Coding Expert of FAI

Feeback

reviewed
Profile Photo
May 27, 2023 12:05 PM Last Updated
updated

How can I create a scrollable modal using Bootstrap classes?

The "modal-dialog-scrollable" class in Bootstrap allows for creating a scrollable modal dialog.

When applied to the modal dialog container, it enables a scrollbar within the modal when its content exceeds the available height.

This class ensures that the modal remains within the viewport while providing a scrollable area for content that goes beyond the modal's visible area

Bootstrap Scrollable Modal using bootstrap class Example

Copied to Clipboard
Run

Output of Bootstrap Scrollable Modal

How can I create a scrollable modal using custom CSS in Bootstrap?

To create a Bootstrap scrollable modal with custom CSS, you can use the following example :

In this example, the CSS rule ".modal-body" is targeted. It sets the maximum height of the modal body to 300 pixels and enables vertical scrolling if the content exceeds this height.

This allows the modal to display a fixed height and provide a scrollable area for the content within it.

Bootstrap Scrollable Modal using Custom Css Example

Copied to Clipboard
Run
Ad