Bootstrap snippet and html example. bs4 widget image cards

Bootstrap 4.1.1 snippet "bs4 widget image cards" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: widget,cards,bs4,images

HTML code

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

<div class="container bootdey">
    <div class="row flex-row">
        <div class="col-md-4 col-sm-6 col-remove">
            <div class="widget-image has-shadow">
                <div class="contact-card-2">
                    <div class="cover-bg">
                        <img src="https://www.bootdey.com/image/350x280/FFB6C1/000000" class="img-fluid" alt="...">
                    </div>
                    <div class="widget-body">
                        <div class="quick-actions hover">
                            <div class="dropdown">
                                <button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle">
                                    <i class="la la-ellipsis-h"></i>
                                </button>
                                <div class="dropdown-menu">
                                    <a href="#" class="dropdown-item remove">
                                        <i class="la la-trash"></i>Delete
                                    </a>
                                    <a href="#" class="dropdown-item">
                                        <i class="la la-edit"></i>Edit
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="cover-image mx-auto">
                            <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="..." class="rounded-circle mx-auto">
                        </div>
                        <h4 class="name"><a href="#">Brandon Smith</a></h4>
                        <div class="job">Designer</div>
                        <div class="text-center pt-5 pb-3">
                            <a href="#" class="btn btn-shadow">Profile</a>
                            <a href="#" class="btn btn-shadow">Message</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="col-md-4 col-sm-6 col-remove">
            <div class="widget-image has-shadow">
                <div class="contact-card-2">
                    <div class="cover-bg">
                        <img src="https://www.bootdey.com/image/350x280/87CEFA/000000" class="img-fluid" alt="...">
                    </div>
                    <div class="widget-body">
                        <div class="quick-actions hover">
                            <div class="dropdown">
                                <button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle">
                                    <i class="la la-ellipsis-h"></i>
                                </button>
                                <div class="dropdown-menu">
                                    <a href="#" class="dropdown-item remove">
                                        <i class="la la-trash"></i>Delete
                                    </a>
                                    <a href="#" class="dropdown-item">
                                        <i class="la la-edit"></i>Edit
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="cover-image mx-auto">
                            <img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="..." class="rounded-circle mx-auto">
                        </div>
                        <h4 class="name"><a href="#">Brandon Smith</a></h4>
                        <div class="job">Designer</div>
                        <div class="text-center pt-5 pb-3">
                            <a href="#" class="btn btn-shadow">Profile</a>
                            <a href="#" class="btn btn-shadow">Message</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-4 col-sm-6 col-remove">
            <div class="widget-image has-shadow">
                <div class="contact-card-2">
                    <div class="cover-bg">
                        <img src="https://www.bootdey.com/image/350x280/FF7F50/000000" class="img-fluid" alt="...">
                    </div>
                    <div class="widget-body">
                        <div class="quick-actions hover">
                            <div class="dropdown">
                                <button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle">
                                    <i class="la la-ellipsis-h"></i>
                                </button>
                                <div class="dropdown-menu">
                                    <a href="#" class="dropdown-item remove">
                                        <i class="la la-trash"></i>Delete
                                    </a>
                                    <a href="#" class="dropdown-item">
                                        <i class="la la-edit"></i>Edit
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="cover-image mx-auto">
                            <img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="..." class="rounded-circle mx-auto">
                        </div>
                        <h4 class="name"><a href="#">Brandon Smith</a></h4>
                        <div class="job">Designer</div>
                        <div class="text-center pt-5 pb-3">
                            <a href="#" class="btn btn-shadow">Profile</a>
                            <a href="#" class="btn btn-shadow">Message</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

CSS code

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

body{
    margin-top:20px;
    background:#eee;
}
.has-shadow {
    box-shadow: 0 1px 15px 1px rgba(52,40,104,.08);
}
.widget-body {
    padding: 1.4rem
}

.flex-row>[class*='col-']>.widget-image {
    height: 100%
}
.widget-image:hover .quick-actions.hover {
    display: block
}
.rounded-widget .widget-image {
    border-radius: 4px
}
.widget-image {
    background: #fff;
    border-radius: 0;
    border: none;
    margin-bottom: 30px;
    position: relative
}

.contact-card-2 {
    margin-top: 0;
    position: relative
}

.contact-card-2 .cover-bg {
    display: block
}

.contact-card-2 .cover-bg>img {
    display: block;
    margin-bottom: 0;
    transition: all .25s ease-in-out
}

.contact-card-2 .cover-image {
    display: block;
    position: absolute;
    width: 100px;
    top: -50px;
    left: 0;
    right: 0
}

.contact-card-2 .cover-image>img {
    display: block;
    width: 100px;
    border: 6px solid #fff;
    transition: all .25s ease-in-out
}

.contact-card-2 .widget-body {
    position: relative
}

.contact-card-2 .name {
    color: #5d5386;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0;
    margin-top: 3rem;
    margin-bottom: 0;
    text-decoration: none;
    text-align: center
}

.contact-card-2 .job {
    color: #aea9c3;
    font-size: 1rem;
    text-align: center
}

.contact-card-2 .stats {
    margin-top: 1.4rem
}

.contact-card-2 .stats .counter {
    display: block;
    color: #5d5386;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center
}

.contact-card-2 .stats .text {
    color: #aea9c3;
    display: block;
    text-align: center
}

.contact-card-2 .btn-group {
    padding: 2rem 0 1.4rem
}

.contact-card-2 .quick-about {
    text-align: center;
    margin-top: 1.4rem
}

.contact-card-2 .quick-about h4 {
    color: #2c304d;
    font-weight: 600;
    margin-bottom: .4rem
}

.contact-card-2 .quick-about p {
    font-size: .9rem;
    margin: 0
}

.contact-card-2 .owl-dots {
    float: left;
    margin-top: 1.4rem;
    text-align: center;
    width: 100%
}

.contact-card-2 .owl-dots .owl-dot {
    border: 2px solid #aea9c3;
    border-radius: 50%;
    display: inline-block;
    height: 12px;
    margin: 0 .3rem;
    width: 12px;
    transition: all 0.3s ease 0s
}

.contact-card-2 .owl-dots .owl-dot:hover {
    border-color: #e76c90
}

.contact-card-2 .owl-dots .owl-dot.active {
    border: 2px solid #e76c90
}
.quick-actions.hover {
    z-index: 999;
    position: absolute;
    top: 10px;
    right: 20px;
    display: none;
}
.quick-actions .dropdown-toggle {
    color: #98a8b4;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.7rem;
}
.quick-actions .dropdown-menu {
    border: none;
    min-width: auto;
    font-size: 1rem;
    border-radius: 4px;
    padding: 1.4rem 1.8rem;
    text-align: left;
    box-shadow: 1px 1px 30px rgba(0,0,0,.15);
}
.quick-actions .dropdown-menu .dropdown-item {
    padding: .5rem 0;
}
.quick-actions .dropdown-menu a {
    color: #2c304d;
    font-weight: 500;
}
.quick-actions .dropdown-menu a i {
    font-size: 1.4rem;
    vertical-align: -2px;
    color: #2c304d;
    margin-right: .7rem;
    transition: all 0.4s ease;
}
.quick-actions .dropdown-menu .dropdown-item {
    padding: .5rem 0;
}
.quick-actions .dropdown-menu a {
    color: #2c304d;
    font-weight: 500;
}
.contact-card-2 .cover-image {
    display: block;
    position: absolute;
    width: 100px;
    top: -50px;
    left: 0;
    right: 0;
}
.contact-card-2 .name {
    color: #5d5386;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0;
    margin-top: 3rem;
    margin-bottom: 0;
    text-decoration: none;
    text-align: center;
}
.btn-gradient-01, .btn-gradient-01 a {
    background: #e23f83;
    background: linear-gradient(to right,#e23f83 0%,#ea5844 100%);
    background-size: 200% auto;
    font-weight: 600;
    transition: 0.5s;
    color: #fff;
    border: 0 none;
    padding: 12px 20px;
}
.btn-shadow, .btn-shadow a {
    color: #5d5386;
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 1px 15px 1px rgba(52,40,104,.15);
}

Similar snippets

Bootstrap example and template. bs4 Ratings and Reviews page

bs4 Ratings and Reviews page

Bootstrap example and template. bs4 simple search result

bs4 simple search result

Bootstrap example and template. bs4 card widget with user role

bs4 card widget with user role

Bootstrap example and template. bs4 contact cards

bs4 contact cards

Bootstrap example and template. career list

career list

Bootstrap example and template. Shop Order Tracking

Shop Order Tracking

Bootstrap example and template. Newsletter grey email

Newsletter grey email

Bootstrap example and template. Profile bio

Profile bio

FAQ

How do I use this snippet?

Include Bootstrap 4.1.1, 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 4.1.1.

Bootstrap example and template. bs4 widget image cards

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 9.0K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.1.1

<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 4.1.1 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