<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 5 Responsive Card Grid with Images</title> <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> --> <!-- <link rel="stylesheet" id="picostrap-styles-css" href="https://cdn.livecanvas.com/media/css/library/bundle.css" media="all"> --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/livecanvas-team/ninjabootstrap/dist/css/bootstrap.min.css" media="all"> </head> <body> <div class="container"> <div class="row row-cols-1 row-cols-lg-3 align-items-stretch g-4 py-5"> <div class="col"> <div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background-image: url('https://images.unsplash.com/photo-1507499739999-097706ad8914?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTB8fHNwYWNlfGVufDB8MXx8fDE2MjE4NDQ2MTY&ixlib=rb-1.2.1&q=80&w=1080&h=768'); background-size:cover"> <div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1"> <div class="lc-block pt-5 mt-5 mb-4"> <div editable="rich"> <h2 class="display-6 lh-1 fw-bold">Short title, long jacket</h2> <p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p> </div> </div> <ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul> </div> </div> </div> <div class="col"> <div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background:url(https://images.unsplash.com/photo-1444910958049-f45a1ac7ace5?crop=entropy&amp;cs=tinysrgb&amp;fit=crop&amp;fm=jpg&amp;ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTA2fHxmbG93ZXJzfGVufDB8MHx8fDE2MjE1MDQwMjg&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=1080&amp;h=76) center / cover no-repeat;"> <div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1"> <div class="lc-block pt-5 mt-5 mb-4"> <div editable="rich"> <h2 class="display-6 lh-1 fw-bold">Much longer title that wraps to multiple lines</h2> <p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p> </div> </div> <ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul> </div> </div> </div> <div class="col"> <div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background:url(https://images.unsplash.com/photo-1580133748682-099a97d17e6c?crop=entropy&amp;cs=tinysrgb&amp;fit=crop&amp;fm=jpg&amp;ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTV8fGplbGx5JTIwZmlzaHxlbnwwfDB8fHwxNjIxNTA0MDU1&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=1080&amp;h=768) center / cover no-repeat;"> <div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1"> <div class="lc-block pt-5 mt-5 mb-4"> <div editable="rich"> <h2 class="display-6 lh-1 fw-bold">Another longer title belongs here</h2> <p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p> </div> </div> <ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul> </div> </div> </div> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script> </body> </html>
/* Doesn't require any CSS. */
//Doesn't require any JS.
This Bootstrap 5 snippet provides a visually appealing and responsive card grid layout designed to showcase images and accompanying text in a structured and organized manner. The grid is fully customizable, allowing you to tailor its appearance and content to match your website's design and branding.
Key Features:
- Responsive Design: The card grid adapts seamlessly to different screen sizes, ensuring a consistent user experience across devices.
- Customizable Styling: Easily modify the appearance of the cards using Bootstrap's CSS classes to match your website's design and branding.
- Image Integration: The cards can display images of various sizes and aspect ratios, making them suitable for showcasing products, articles, or other visual content.
- Text Content: Each card can include descriptive text, such as titles, excerpts, or call-to-action buttons.
- Hover Effects: Add visually appealing hover effects to the cards to highlight key information or trigger actions when users interact with them.
Implementation:
- Include Bootstrap 5: Ensure you have Bootstrap 5 installed and configured in your project.
- Create the HTML Structure: Set up the basic HTML structure for the card grid, including the container, card rows, and individual card elements (images, titles, text).
- Apply Bootstrap Classes: Use Bootstrap's CSS classes to style the card grid and its elements, such as card, card-img-top, card-body, card-title, card-text, and any other relevant classes.
- Customize as Needed: Modify the Bootstrap classes and HTML structure to customize the appearance and content of the card grid according to your specific requirements.

Bootstrap 5 Full Height Swiper Slider with Smooth Transitions

Stylish Contact Form with Image in Tailwind CSS

Responsive Registration Form with Image in Tailwind CSS

Bootstrap 5 Payment Method Form Page with Invoice

Modern Pricing Table Design with Bootstrap 4

Responsive Multi-Level Drop-Down Navigation Menu in CSS

Interactive Bottom Navigation Bar Indicator with CSS

Real-time Password Strength Indicator in Bootstrap 5

Responsive Video Card Component for Tailwind CSS

Responsive Feature Highlight Component with Tailwind CSS

Multi-Step Form with International Phone Input and Nice Select

Responsive Review Cards Component with CSS3
Building Blocks for Your Web Pages
Explore a collection of pre-written HTML,CSS and Javascript
snippets to jumpstart your web development projects.