In Bootstrap 5.3, an image gallery can be easily created using the built-in components and classes provided by Bootstrap. Here's an explanation of how you can create an image gallery in Bootstrap 5.3.
By combining these components and classes, you can create a visually appealing and interactive image gallery in Bootstrap 5.3. Remember to refer to the official Bootstrap documentation for detailed information on each component and its usage.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Image Gallery</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" /> <link rel="stylesheet" href="css/base.css" /> </head> <body> <div class="container mt-4"> <h4 class="text-primary mb-4">Responsive Image Gallery</h4> <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-2 g-md-3 g-lg-4"> <div class="col"> <img class="img-fluid img-thumbnail" src="images/01.jpg" alt="flowers" /> </div> <div class="col"> <img class="img-fluid img-thumbnail" src="images/02.jpg" alt="flowers" /> </div> <div class="col"> <img class="img-fluid img-thumbnail" src="images/03.jpg" alt="flowers" /> </div> <div class="col"> <img class="img-fluid img-thumbnail" src="images/04.jpg" alt="flowers" /> </div> <div class="col"> <img class="img-fluid img-thumbnail" src="images/05.jpg" alt="flowers" /> </div> <div class="col"> <img class="img-fluid img-thumbnail" src="images/06.jpg" alt="flowers" /> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script> </body> </html>Live Preview
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions