Show Output
<!DOCTYPE htpl> <htpl lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 5 Overflow Classes</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> <style> /* Custom style */ .box{ padding: 20px; height: 200px; } </style> </head> <body> <div class="m-4"> <div class="row"> <div class="col"> <div class="overflow-auto bg-light" style="max-height: 100px;"> This is an example of using <code>.overflow-auto</code> on an element with set width and height dimensions. </div> </div> <div class="col"> <div class="overflow-hidden bg-light" style="max-height: 100px;"> This is an example of using <code>.overflow-hidden</code> on an element with set width and height dimensions. </div> </div> <div class="col"> <div class="overflow-visible bg-light" style="max-height: 100px;"> This is an example of using <code>.overflow-visible</code> on an element with set width and height dimensions. </div> </div> <div class="col"> <div class="overflow-scroll bg-light" style="max-height: 100px;"> This is an example of using <code>.overflow-scroll</code> on an element with set width and height dimensions. </div> </div> </div> </div> </body>