When you have a fixed-size box (like a container with a strict height) but the text or images inside it are too large to fit naturally, the content will "overflow". Bootstrap provides four simple utility classes to dictate exactly how the browser should handle this excess format data.
.overflow-auto: The standard and most common choice. It tracks the content and applies a scrollbar only if necessary (if the content exceeds the box)..overflow-hidden: It simply cuts off the extra content like scissors. Anything past the boundary is completely invisible, and no scrollbar is provided..overflow-visible: The default browser behavior. The text ignores the box entirely and visually "bleeds" out past the boundaries, overlapping whatever sits below it..overflow-scroll: Forces a scrollbar track to appear permanently, even if the content inside fits perfectly and doesn't explicitly need one.Here are four identical boxes. Each one has a strict CSS height of 150 pixels, but they all contain identical amounts of huge text that clearly needs more space than 150px. See how each class reacts!
<!-- Automatically provides a scrollbar only if the text is too long -->
<div class="overflow-auto" style="max-height: 200px;">...</div>
<!-- Chops whatever escapes to make it invisible -->
<div class="overflow-hidden" style="max-height: 200px;">...</div>
<!-- Forces a scrollbar to appear permanently -->
<div class="overflow-scroll" style="max-height: 200px;">...</div>