Bootstrap snippet and html example. bs4 card block

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: cards

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.1.1 included, to get the result that you can see in the preview selection

<div class="container">
    <div class="row">
        <div class="col-md-6 col-xl-4">
            <div class="card borderless-card">
                <div class="profile-card">
                    <img class="img-fluid" src="https://www.bootdey.com/image/350x280/FFB6C1/000000" alt="">
                    <div class="card-block">
                        <h3>Title</h3>
                        <p>Lorem ipsum dolor sit amet, consectetuer</p>
                        <button class="btn btn-info ">+ Follow</button>
                    </div>
                </div>
                <div class="card-footer bg-inverse">
                    <div class="row text-center">
                        <div class="col-sm-4">
                            <h4>134</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>13,227</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>488</h4>
                            <span>Shots</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6 col-xl-4">
            <div class="card borderless-card">
                <div class="profile-card">
                    <img class="img-fluid" src="https://www.bootdey.com/image/350x280/87CEFA/000000" alt="">
                    <div class="card-block">
                        <h3>Title</h3>
                        <p>Lorem ipsum dolor sit amet, consectetuer</p>
                        <button class="btn btn-info ">+ Follow</button>
                    </div>
                </div>
                <div class="card-footer bg-inverse">
                    <div class="row text-center">
                        <div class="col-sm-4">
                            <h4>134</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>13,227</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>488</h4>
                            <span>Shots</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6 col-xl-4">
            <div class="card borderless-card">
                <div class="profile-card">
                    <img class="img-fluid" src="https://www.bootdey.com/image/350x280/FF7F50/000000" alt="">
                    <div class="card-block">
                        <h3>Title</h3>
                        <p>Lorem ipsum dolor sit amet, consectetuer</p>
                        <button class="btn btn-info ">+ Follow</button>
                    </div>
                </div>
                <div class="card-footer bg-inverse">
                    <div class="row text-center">
                        <div class="col-sm-4">
                            <h4>134</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>13,227</h4>
                            <span>Shots</span>
                        </div>
                        <div class="col-sm-4">
                            <h4>488</h4>
                            <span>Shots</span>
                        </div>
                    </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.1.1 included, to get the result that you can see in the preview selection

body{
    margin-top:20px;
    background-color: #f3f3f3;
    }
.card {
    border-radius: 5px;
    box-shadow: 0 1px 11px 0 rgba(0, 0, 0, 0.12);
    border: none;
    margin-bottom: 30px;
}
.profile-card {
    position: relative;
}
.profile-card .card-block {
    text-align: center;
    color: #fff;
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
}

.card-block {
    padding: 1.25rem;
}

.card .card-block p {
    line-height: 25px;
}
@media only screen and (min-width: 1400px){
    p {
        font-size: 14px;
    }
}
p {
    font-size: 13px;
}
.btn-info {
    background-color: #62d1f3;
    border-color: #62d1f3;
    color: #fff;
    cursor: pointer;
    transition: all ease-in 0.3s;
}
.btn {
    border-radius: 2px;
    text-transform: capitalize;
    font-size: 15px;
    padding: 10px 19px;
    cursor: pointer;
}
.card .card-footer {
    background-color: #fff;
    border-top: none;
}
.profile-card ~ .card-footer {
    padding: 0;
}
.bg-inverse {
    background-color: #1a1b1d !important;
    color: #fff;
}

Similar snippets

Bootstrap example and template. bs4 Contacts cards

bs4 Contacts cards

Bootstrap example and template. User list cards

User list cards

Bootstrap example and template. social network profile head

social network profile head

Bootstrap example and template. colored users cards

colored users cards

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. invoice card

invoice card

Bootstrap example and template. chat app

chat app

Bootstrap example and template. Invoice

Invoice

Bootstrap example and template. bs4 card block

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.2K views, Using this bootstrap snippet you have the following benefits:

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