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 Media Objects</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="d-flex"> <div class="flex-shrink-0"> <img src="/examples/images/avatar.svg" class="rounded-circle" width="80" height="80" alt="Sample Image"> </div> <div class="flex-grow-1 ms-3"> <h5>Jhon Carter <small class="text-muted"><i>Posted on January 10, 2021</i></small></h5> <p>Excellent feature! I love it. One day I'm definitely going to put this Bootstrap component into use and I'll let you know once I do.</p> <!-- Nested media object --> <div class="d-flex mt-4"> <div class="flex-shrink-0"> <img src="/examples/images/avatar.svg" class="rounded-circle" width="80" height="80" alt="Sample Image"> </div> <div class="flex-grow-1 ms-3"> <h5>Clark Kent <small class="text-muted"><i>Posted on January 12, 2021</i></small></h5> <p>Thanks, you found this component useful. Don't forget to check out other Bootstrap components as well. They're also very useful.</p> </div> </div> </div> </div> </div> </body> </html>