Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Nested Rows and Columns</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 */ .main-content{ min-height: 230px; background: #dbdfe5; } .sidebar-content{ min-height: 100px; margin-bottom: 30px; background: #b4bac0; } </style> </head> <body> <div class="container mt-3"> <div class="row"> <div class="col-sm-8"> <div class="main-content"></div> </div> <div class="col-sm-4"> <!--Nested rows within a column--> <div class="row"> <div class="col-12"> <div class="sidebar-content"></div> </div> </div> <div class="row"> <div class="col-6"> <div class="sidebar-content"></div> </div> <div class="col-6"> <div class="sidebar-content"></div> </div> </div> </div> </div> </div> </body> </html>