Bootstrap snippet and html example. cards with numbers

Bootstrap 5.2.0 snippet "cards with numbers" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: cards

HTML code

Clean, semantic HTML that powers this Bootstrap 5.2.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
    <div class="row">
        <div class="col-md-6">
            <div class="card">
                <div class="position-relative overflow-hidden h-200px">
                    <img src="https://www.bootdey.com/image/1352x300/00FFFF/000000" class="card-img rounded-top" alt="">
                    <div class="card-img-overlay text-center text-white bg-black bg-opacity-60 d-flex align-items-center flex-column justify-content-center rounded-0 rounded-top">
                        <div class="my-3 pt-5">
                            <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="" width="100" class="rounded-circle">
                        </div>
                        <div>
                            <div class="fw-bold">Maurice Patterson</div>
                            <div class="fs-12px text-white text-opacity-75">Never give up</div>
                        </div>
                    </div>
                </div>
                <div class="card-body py-10px">
                    <div class="row text-center">
                        <div class="col-4">
                            <div class="fw-semibold fs-5">415</div>
                            <div class="small">posts</div>
                        </div>
                        <div class="col-4">
                            <div class="fw-semibold fs-5">140k</div>
                            <div class="small">followers</div>
                        </div>
                        <div class="col-4">
                            <div class="fw-semibold fs-5">697</div>
                            <div class="small">following</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-6">
            <div class="card">
                <div class="position-relative overflow-hidden h-200px">
                    <img src="https://www.bootdey.com/image/1352x300/00FFFF/000000" class="card-img rounded-top" alt="">
                    <div class="card-img-overlay text-center text-white bg-black bg-opacity-60 d-flex align-items-center flex-column justify-content-center rounded-0 rounded-top">
                        <div class="my-3 pt-5">
                            <img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="" width="100" class="rounded-circle">
                        </div>
                        <div>
                            <div class="fw-bold">Maurice Patterson</div>
                            <div class="fs-12px text-white text-opacity-75">Never give up</div>
                        </div>
                    </div>
                </div>
                <div class="card-body py-10px">
                    <div class="row text-center">
                        <div class="col-4">
                            <div class="fw-semibold fs-5">415</div>
                            <div class="small">posts</div>
                        </div>
                        <div class="col-4">
                            <div class="fw-semibold fs-5">140k</div>
                            <div class="small">followers</div>
                        </div>
                        <div class="col-4">
                            <div class="fw-semibold fs-5">697</div>
                            <div class="small">following</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 5.2.0 to keep the design, spacing, and responsiveness consistent.

body{padding-top:20px;
background-color: rgba(235, 238, 255, 1) !important;
}

Similar snippets

Bootstrap example and template. job categories cards

job categories cards

Bootstrap example and template. news widget

news widget

Bootstrap example and template. bs4 widget image cards

bs4 widget image cards

Bootstrap example and template. team members cards

team members cards

Bootstrap example and template. user profile bio graph and total sales

user profile bio graph and total sales

Bootstrap example and template. user presentation profile with description

user presentation profile with description

Bootstrap example and template. User list

User list

Bootstrap example and template. Dropdown animation with CSS

Dropdown animation with CSS

FAQ

How do I use this snippet?

Include Bootstrap 5.2.0, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 5.2.0.

Bootstrap example and template. cards with numbers

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 6.4K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 5.2.0

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 5.2.0 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working