Bootstrap snippet and html example. card features

Bootstrap 4.5.0 snippet "card features" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: card

HTML code

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

<div class="container lg padding-20px-tb">

        <div class="row">

            <div class="col-md-4 xs-margin-30px-bottom">
                <div class="card categories-card">
                    <div class="card-img"><img src="https://www.bootdey.com/image/550x420/FFB6C1/000000" alt=""></div>

                    <div class="card-img-overlay align-items-center">
                        <div class="bg-white-opacity">

                            <h3><a href="#!">Home Decor</a></h3>
                            <ul class="categories-02">
                                <li><a href="#!" class="line position-relative">Sofa</a></li>
                                <li><a href="#!" class="line position-relative">Lamp</a></li>
                                <li>
                                    <a href="#!">More</a>
                                </li>
                            </ul>

                        </div>
                    </div>

                </div>
            </div>

            <div class="col-md-4 xs-margin-30px-bottom">
                <div class="card categories-card">
                    <div class="card-img"><img src="https://www.bootdey.com/image/550x420/87CEFA/000000" alt=""></div>

                    <div class="card-img-overlay align-items-center">
                        <div class="bg-white-opacity">

                            <h3><a href="#!">Gadgets</a></h3>
                            <ul class="categories-02">
                                <li><a href="#!" class="line position-relative">Mobile</a></li>
                                <li><a href="#!" class="line position-relative">Laptop</a></li>
                                <li>
                                    <a href="#!">More</a>
                                </li>
                            </ul>

                        </div>
                    </div>

                </div>
            </div>

            <div class="col-md-4">
                <div class="card categories-card">
                    <div class="card-img"><img src="https://www.bootdey.com/image/550x420/FF7F50/000000" alt=""></div>

                    <div class="card-img-overlay align-items-center">
                        <div class="bg-white-opacity">

                            <h3><a href="#!">Footware</a></h3>
                            <ul class="categories-02">
                                <li><a href="#!" class="line position-relative">Flats</a></li>
                                <li><a href="#!" class="line position-relative">Heels</a></li>
                                <li>
                                    <a href="#!">More</a>
                                </li>
                            </ul>

                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>

CSS code

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

body{
    margin-top:20px;
background:#f5f5f5;
}

.categories-card.card {
    border: none;
    box-shadow: none
}

.categories-card .card-img-overlay {
    display: flex
}

.categories-card .card-img-overlay>* {
    flex: 1
}

.categories-card h3 {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px
}

.categories-card .bg-white-opacity {
    text-align: center;
    padding: 20px 20px 18px 20px
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
}

.bg-white-opacity {
    background-color: rgba(255,255,255,0.85);
}

.categories-02 {
    padding: 0;
    margin: 0;
}

.categories-02 li {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
    font-weight: 600;
    opacity: .8;
    vertical-align: middle;
}

.categories-02 li a {
    color: rgba(0,0,0,0.85);
}

a, a:active, a:focus {
    color: #5e6973;
    text-decoration: none;
    transition-timing-function: ease-in-out;
    -ms-transition-timing-function: ease-in-out;
    -moz-transition-timing-function: ease-in-out;
    -webkit-transition-timing-function: ease-in-out;
    -o-transition-timing-function: ease-in-out;
    transition-duration: .2s;
    -ms-transition-duration: .2s;
    -moz-transition-duration: .2s;
    -webkit-transition-duration: .2s;
    -o-transition-duration: .2s;
}

.card-img, .card-img-bottom {
    border-bottom-right-radius: calc(.25rem - 1px);
    border-bottom-left-radius: calc(.25rem - 1px);
}
.card-img, .card-img-top {
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}
.card-img, .card-img-bottom, .card-img-top {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}











Similar snippets

Bootstrap example and template. bs4 new friends panel

bs4 new friends panel

Bootstrap example and template. profile card with animation

profile card with animation

Bootstrap example and template. bs4 Kanban Board

bs4 Kanban Board

Bootstrap example and template. bs4 user card task list

bs4 user card task list

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. profile with team section

profile with team section

Bootstrap example and template. read email

read email

Bootstrap example and template. Real state item list

Real state item list

FAQ

How do I use this snippet?

Include Bootstrap 4.5.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 4.5.0.

Bootstrap example and template. card features

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

Bootstrap 4.5.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 4.5.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