Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Column Wrapping</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> /* Some custom styles to beautify this example */ .demo-content{ padding: 15px; font-size: 18px; background: #dbdfe5; margin-bottom: 15px; } .demo-content.bg-alt{ background: #abb1b8; } </style> </head> <body> <h2 class="text-center mt-3">Bootstrap Column Wrapping</h2> <div class="text-center my-3">Open the output in a new blank tab (Click the arrow next to "Show Output" button) and resize the browser window to understand how the Bootstrap column wrapping works.</div> <div class="container"> <div class="row"> <div class="col-md-4 col-lg-3"> <div class="demo-content">.col-md-4 .col-lg-3</div> </div> <div class="col-md-8 col-lg-6"> <div class="demo-content bg-alt">.col-md-8 .col-lg-6</div> </div> <div class="col-md-12 col-lg-3"> <div class="demo-content">.col-md-12 .col-lg-3</div> </div> </div> </div> </body> </html>