Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Example of Bootstrap Layout for All Devices</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script> <style> .row > div{ margin-bottom: 15px; } .header{ min-height: 90px; } .footer{ min-height: 60px; } .header, .footer{ background: #2f2f2f; } .sidebar{ background: #dbdfe5; } .intro{ background: #7e8aa0; min-height: 250px; } .section{ min-height: 150px; background: #dbdfe5; } .section.bg-alt{ background: #b4bac0; } </style> </head> <body> <!-- 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 responsive grid system works. --> <div class="container"> <div class="row"> <div class="col-12"> <div class="header"></div> </div> </div> <div class="row"> <div class="col-12"> <div class="intro"></div> </div> </div> <div class="row"> <div class="col-6"> <div class="section"></div> </div> <div class="col-6"> <div class="section bg-alt"></div> </div> </div> <div class="row"> <div class="col-12"> <div class="footer"></div> </div> </div> </div> </body> </html>