Overflow
Bootstrap Overflow
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a huge discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
upgrade with discount
You can use these shorthand utilities for quickly configuring how content overflows an element.
Barebones overflow functionality is provided for two values by default, and they are not responsive.
.overflow-auto
on an element with set width and height dimensions. By
design, this content will vertically scroll.
.overflow-hidden
on an element with set width and height dimensions.
<div class="overflow-auto">...</div>
<div class="overflow-hidden">...</div>
Using Sass variables, you may customize the overflow utilities by changing the $overflows
variable in
_variables.scss
.
Overflow with image
<div class="overflow-auto">
<img src="...">
</div>
<div class="overflow-hidden">
<img src="...">
</div>