Scroll div
Bootstrap 5 Scroll div component
Responsive Scroll div built with Bootstrap 5. Use these shorthand utilities for quickly configuring how content overflows an element.
Basic example
Use the .overflow-auto
class if you want a scroll in your div.
This is an example of using
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll.
This is an example of using
.overflow-hidden
on an element with set width and height dimensions.
Overflow with image
Put an image into a div with the class .overflow-auto
and a fixed size to get an image that can be scrolled.