Bootstrap snippet and html example. card features

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: card

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 4.5.0 included, to get the result that you can see in the preview selection

<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

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 4.5.0 included, to get the result that you can see in the preview selection

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. contacts card

contacts card

Bootstrap example and template. bs4 user card task list

bs4 user card task list

Bootstrap example and template. User grid

User grid

Bootstrap example and template. bs4 new friends panel

bs4 new friends panel

Bootstrap example and template. profile with activity log

profile with activity log

Bootstrap example and template. social media resumen profile

social media resumen profile

Bootstrap example and template. Google choose an account style

Google choose an account style

Bootstrap example and template. Customer Reviews

Customer Reviews

Bootstrap example and template. card features

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 6.8K views, Using this bootstrap snippet you have the following benefits:

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