Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 4 Grid Layouts 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> /* Some custom styles to beautify this example */ p{ padding: 50px; font-size: 32px; font-weight: bold; text-align: center; background: #dbdfe5; } </style> </head> <body> <h2 class="text-center my-3">Bootstrap Responsive Layout</h2> <div class="text-center">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> <div class="container mt-3"> <div class="row"> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 1</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 2</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 3</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 4</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 5</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 6</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 7</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 8</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 9</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 10</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 11</p></div> <div class="col-lg-4 col-md-6 col-xl-3"><p>Box 12</p></div> </div> </div> </body> </html>