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 Card Columns</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> .bs-example{ margin: 20px; } </style> </head> <body> <div class="bs-example"> <div class="container"> <div class="row"> <div class="card-columns"> <div class="card"> <img src="/examples/images/thumbnail.svg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> <p class="card-text">Lorem ipsum dolor sit amet, consectetur adipi elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis velde, semper malesuada.</p> <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> </div> </div> <div class="card p-3"> <blockquote class="blockquote mb-0 card-body"> <p>Nam eget purus consectetur in vehicula. Nullamr ultrices nisl risus, viverra libero egestas sit amet.</p> <footer class="blockquote-footer"> <small class="text-muted">Someone famous</small> </footer> </blockquote> </div> <div class="card"> <img src="/examples/images/thumbnail.svg" class="card-img-top" alt="..."> <div class="card-body"> <h5 class="card-title">Card title</h5> <p class="card-text">Vestibulum id metus ac nisl bibendum scelerisque non dignissim purus.</p> <p class="card-text"><small class="text-muted">Last updated 2 mins ago</small></p> </div> </div> <div class="card bg-primary text-white text-center p-3"> <blockquote class="blockquote mb-0"> <p>Pulvinar leo id risus pellentesque vestibulum. Sed diam libero, sodales eget sapien vel.</p> <footer class="blockquote-footer text-white"> <small>Someone famous</small> </footer> </blockquote> </div> <div class="card text-center"> <div class="card-body"> <h5 class="card-title">Card title</h5> <p class="card-text">Enim arcu, interdum dignissim venenatis velc metus posuere oc.</p> <p class="card-text"><small class="text-muted">Last updated 1 mins ago</small></p> </div> </div> <div class="card"> <img src="/examples/images/thumbnail.svg" class="card-img-top" alt="..."> </div> <div class="card p-3 text-right"> <blockquote class="blockquote mb-0"> <p>Quis quam ut magna consequat faucibus. Pellentesque eget nisi suscipit tincidunt. Pellentesque viverra sagittis quam at.</p> <footer class="blockquote-footer"> <small class="text-muted">Someone famous</small> </footer> </blockquote> </div> <div class="card"> <div class="card-body"> <h5 class="card-title">Card title</h5> <p class="card-text">Convallis eget pretium eu, bibendum non leo. Proin suscipit purus adipiscing dolor gravida fermentum sapien blandit. Praesent pellentesque ligula dui, in gravida turpis acmy interdum vel metus.</p> <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> </div> </div> </div> </div> </div> </div> </body> </html>