Bootstrap snippet and html example. simple user card

Bootstrap 5.2.0 snippet "simple user card" 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.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<div class="container">
    <div class="row">
        <div class="col-sm-6 col-md-6  mb-3">
            <div class="card">
                <div class="card-body">

                    <!-- Profile picture and short information -->
                    <div class="d-flex align-items-center position-relative pb-3">
                        <div class="flex-shrink-0">
                            <img class="img-md rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Profile Picture" loading="lazy">
                        </div>
                        <div class="flex-grow-1 ms-3">
                            <a href="#" class="h5 stretched-link btn-link">Stephen Tran</a>
                            <p class="text-muted m-0">Marketing manager</p>
                        </div>
                    </div>
                    <p>Lorem ipsum dolor sit amet consec tetur adipisicing elit.</p>
                    <!-- END : Profile picture and short information -->

                    <!-- Options buttons -->
                    <div class="mt-3 pt-2 text-center border-top">
                        <div class="d-flex justify-content-center gap-3">
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-phone" aria-hidden="true"></i> Call
                                            </a>
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-envelope" aria-hidden="true"></i> Email
                                            </a>
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-pencil" aria-hidden="true"></i>Edit
                                            </a>
                        </div>
                    </div>
                    <!-- END : Options buttons -->

                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-6  mb-3">
            <div class="card">
                <div class="card-body">

                    <!-- Profile picture and short information -->
                    <div class="d-flex align-items-center position-relative pb-3">
                        <div class="flex-shrink-0">
                            <img class="img-md rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Profile Picture" loading="lazy">
                        </div>
                        <div class="flex-grow-1 ms-3">
                            <a href="#" class="h5 stretched-link btn-link">Stephen Tran</a>
                            <p class="text-muted m-0">Marketing manager</p>
                        </div>
                    </div>
                    <p>Lorem ipsum dolor sit amet consec tetur adipisicing elit.</p>
                    <!-- END : Profile picture and short information -->

                    <!-- Options buttons -->
                    <div class="mt-3 pt-2 text-center border-top">
                        <div class="d-flex justify-content-center gap-3">
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-phone" aria-hidden="true"></i> Call
                                            </a>
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-envelope" aria-hidden="true"></i> Email
                                            </a>
                            <a href="#" class="btn btn-sm btn-info btn-outline-light btn-lg">
                                                <i class="fa fa-pencil" aria-hidden="true"></i>Edit
                                            </a>
                        </div>
                    </div>
                    <!-- END : Options buttons -->

                </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{margin-top:20px;
background:#eee;
}
.card {
    box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
}
.img-md {
    width: 4rem;
    height: 4rem;
}
.btn-link {
    transition-property: color,background-color;
    box-shadow: none;
    border-radius: 0;
    text-decoration: none!important;
}

Similar snippets

Bootstrap example and template. user blog post widget

user blog post widget

Bootstrap example and template. carbonads ad example

carbonads ad example

Bootstrap example and template. social network profile head

social network profile head

Bootstrap example and template. Css Player User Cards

Css Player User Cards

Bootstrap example and template. Frequently Asked Questions section

Frequently Asked Questions section

Bootstrap example and template. Bootstrap Colored Panel Pricing Table

Bootstrap Colored Panel Pricing Table

Bootstrap example and template. event blocks

event blocks

Bootstrap example and template. simple user profile presentation social

simple user profile presentation social

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. simple user card

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 8.2K+ 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