In Bootstrap 5.3, a "card" is a versatile UI component used to present content in a visually appealing and structured manner. It is designed to display a variety of information, such as text, images, links, buttons, and more, in a compact and organized format. Cards are widely used in web development for creating intuitive and responsive user interfaces.
Here are some key features and characteristics of cards in Bootstrap 5.3:
In Bootstrap 5.3, the "Simple Card Image Top" is a specific card style that features an image at the top of the card with simple content below it. This card style is commonly used to display an image alongside a brief description, title, or other relevant information. It provides a clean and visually appealing layout.
Here's how you can create a Simple Card Image Top in Bootstrap 5.3:
<div class="card" style="width: 450px"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div>
Overall, this code creates a card with an image at the top, followed by a title, description, and two buttons. The image, title, description, and buttons can be customized with your own content and styling to suit your needs.
In Bootstrap 5.3, the "Simple Card Image Bottom" is a card style where the image is positioned at the bottom of the card, with the content displayed above it. This layout is useful when you want to showcase an image that complements the card content or serves as a visual representation related to the card's information.
Here's an example of how to create a Simple Card Image Bottom in Bootstrap 5.3:
<div class="card" style="width: 450px"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div>
By following this structure and applying the appropriate CSS classes, you can create a Simple Card Image Bottom in Bootstrap 5.3. Customize the content, styling, and image source to meet your specific design requirements.
Remember to ensure the image you use is properly sized and optimized for display in the card, considering both desktop and mobile viewing experiences.
In Bootstrap 5.3, the "Card Body With Links" is a card component that allows you to include links within the card's body content. This feature is useful for adding clickable elements, such as buttons, text links, or interactive icons, that direct users to specific destinations or perform actions.
<div class="card"> <div class="card-body"> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero saepe distinctio illum, tenetur, in similique enim eos excepturi doloremque corrupti laboriosam unde veritatis nostrum blanditiis esse eveniet quis, error rerum.</p> <a href="#" class="card-link">Card Link</a> <a href="#" class="card-link">Read More</a> </div> </div>
To create a Card Body With Links in Bootstrap 5.3, follow these steps:
In Bootstrap 5.3, a "Horizontal Card" is a card layout where the card content, such as the image and text, is arranged horizontally instead of the traditional vertical layout. This layout is often used when you have an image or media element associated with a description or details that are displayed side by side.
To create a Horizontal Card in Bootstrap 5.3, follow these steps:
Here's an example of a Horizontal Card in Bootstrap 5.3:
<div class="card" style="width: 800px"> <div class="row"> <div class="col-md-6"> <img src="images/baby.jpg" class="img-fluid rounded-start h-100 object-fit-fill" alt="baby" /> </div> <div class="col-md-6"> <div class="card-body"> <h5 class="card-title">Baby Title</h5> <p class="card-text">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Totam nostrum repudiandae nobis suscipit consequatur doloribus reprehenderit tempora ea dolore debitis quo illum, voluptates odio ab laboriosam autem qui voluptatibus hic?</p> <p class="text-secondary"><small>Last Updated 3 Mins ago</small></p> </div> </div> </div> </div>
By utilizing the Horizontal Card layout, you can present content in a visually appealing side-by-side arrangement. Adjust the column sizes, content, and styling to suit your specific needs and design preferences.
In Bootstrap 5.3, "Card Groups" is a component that allows you to group multiple cards together, creating a visually cohesive and organized display of related content. Card Groups are commonly used when you have a collection of cards that share a common theme or belong to a specific category.
To create Card Groups in Bootstrap 5.3, follow these steps:
Here's an example of how to create Card Groups in Bootstrap 5.3:
<div class="card-group"> <div class="card"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> <div class="card"> <img src="images/flower.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Flowers</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> <div class="card"> <img src="images/bird.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Birds</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div>
In Bootstrap 5.3, the "Card Grid" is a layout structure that allows you to display a grid of cards in a responsive and organized manner. The Card Grid provides a flexible way to present multiple cards in rows and columns, making it ideal for showcasing collections, galleries, or sets of related content.
To create a Card Grid in Bootstrap 5.3, follow these steps:
Here's an example of how to create a Card Grid in Bootstrap 5.3:
<div class="row row-cols-lg-3 row-cols-md-2 row-cols-sm-1 g-4"> <div class="col-sm-12"> <div class="card"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/flower.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Flowers</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/bird.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Birds</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/baby.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Baby</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> </div>
By utilizing the Card Grid in Bootstrap 5.3, you can create responsive and visually appealing arrangements of multiple cards. Adjust the column classes, content, and styling to suit your specific needs and design preferences.
In Bootstrap 5.3, the "Card Image Overlay" is a feature that allows you to overlay content, such as text or buttons, on top of an image within a card. This effect creates an engaging visual presentation where the image serves as the background, and the overlay provides additional information or interactive elements.
Here's an example of how to create a Card image overlay in Bootstrap 5.3:
Here's an example of how to create a Card Image Overlay in Bootstrap 5.3:
<div class="card"> <img src="images/baby.jpg" class="card-img" alt="..." /> <div class="card-img-overlay"> <h4 class="card-title text-white">Card Title</h4> <p class="card-text text-light">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero saepe distinctio illum, tenetur, in similique enim eos excepturi doloremque corrupti laboriosam unde veritatis nostrum blanditiis esse eveniet quis, error rerum.</p> </div> </div>
By using the Card Image Overlay feature in Bootstrap 5.3, you can create visually appealing cards with engaging image backgrounds and overlaying content. Customize the image, overlay content, and styling to achieve the desired effect and meet your specific design requirements.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Card</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" /> <link rel="stylesheet" href="css/style.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" /> </head> <body> <div class="container my-5"> <p class="fw-semibold fs-5 text-primary">Card in Bootstrap</p> <p>Simple Card Image Top</p> <div class="card" style="width: 450px"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> <hr class="my-5" /> <p>Simple Card Image Bottom</p> <div class="card" style="width: 450px"> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> <img src="images/animal.jpg" alt="animal" class="card-img-bottom" /> </div> <hr class="my-5" /> <p>Card Body</p> <div class="card bg-danger text-bg-danger"> <div class="card-body"> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero saepe distinctio illum, tenetur, in similique enim eos excepturi doloremque corrupti laboriosam unde veritatis nostrum blanditiis esse eveniet quis, error rerum.</p> </div> </div> <hr class="my-5" /> <p>Card Body With Links</p> <div class="card"> <div class="card-body"> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero saepe distinctio illum, tenetur, in similique enim eos excepturi doloremque corrupti laboriosam unde veritatis nostrum blanditiis esse eveniet quis, error rerum.</p> <a href="#" class="card-link">Card Link</a> <a href="#" class="card-link">Read More</a> </div> </div> <hr class="my-5" /> <p>Horizontal Card</p> <div class="card" style="width: 800px"> <div class="row"> <div class="col-md-6"> <img src="images/baby.jpg" class="img-fluid rounded-start h-100 object-fit-fill" alt="baby" /> </div> <div class="col-md-6"> <div class="card-body"> <h5 class="card-title">Baby Title</h5> <p class="card-text">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Totam nostrum repudiandae nobis suscipit consequatur doloribus reprehenderit tempora ea dolore debitis quo illum, voluptates odio ab laboriosam autem qui voluptatibus hic?</p> <p class="text-secondary"><small>Last Updated 3 Mins ago</small></p> </div> </div> </div> </div> <hr class="my-5" /> <p>Card Groups</p> <div class="card-group"> <div class="card"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> <div class="card"> <img src="images/flower.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Flowers</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> <div class="card"> <img src="images/bird.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Birds</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <hr class="my-5" /> <p>Card Grid</p> <div class="row row-cols-lg-3 row-cols-md-2 row-cols-sm-1 g-4"> <div class="col-sm-12"> <div class="card"> <img src="images/animal.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Animals</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/flower.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Flowers</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/bird.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Birds</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> <div class="col-sm-12"> <div class="card"> <img src="images/baby.jpg" alt="animal" class="card-img-top" /> <div class="card-body"> <h5 class="card-title">History of Baby</h5> <p class="card-text">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempore beatae nostrum officia? Dolores minus ullam recusandae perferendis unde, odio qui quia officia et at illo delectus adipisci quisquam, libero id.</p> <a href="#" class="btn btn-primary">Read More</a> <a href="#" class="btn btn-success"><i class="bi bi-heart"></i></a> </div> </div> </div> </div> <hr class="my-5" /> <p>Card Image Overlay</p> <div class="card"> <img src="images/baby.jpg" class="card-img" alt="..." /> <div class="card-img-overlay"> <h4 class="card-title text-white">Card Title</h4> <p class="card-text text-light">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Libero saepe distinctio illum, tenetur, in similique enim eos excepturi doloremque corrupti laboriosam unde veritatis nostrum blanditiis esse eveniet quis, error rerum.</p> </div> </div> <hr class="my-5" /> <p>Card With and Footer</p> <div class="card"> <div class="card-header">Header</div> <div class="card-body"> <h5 class="card-title">Special title treatment</h5> <p class="card-text">With supporting text below as a natural lead-in to additional content.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> <div class="card-footer">Footer</div> </div> <!--container end--> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> </body> </html>Live Preview
By leveraging the features of cards in Bootstrap 5.3, you can create visually appealing and responsive layouts for displaying content on your website, making it easier for users to consume and interact with information.
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions