Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Cards Grid</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> </head> <body> <div class="m-4"> <div class="row row-cols-1 row-cols-md-2 g-4"> <div class="col"> <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">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 5 mins ago</small> </div> </div> </div> <div class="col"> <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">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 5 mins ago</small> </div> </div> </div> <div class="col"> <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">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 5 mins ago</small> </div> </div> </div> <div class="col"> <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">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> <div class="card-footer"> <small class="text-muted">Last updated 5 mins ago</small> </div> </div> </div> </div> </div> </body> </html>