Bootstrap snippet. bs4 card block

This snippet was created to help web designers, 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

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

Download
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 carbonads ad example example

carbonads ad example

Bootstrap Material design for Bootstrap 3 bootdey example

Material design for Bootstrap 3 bootdey

Bootstrap bs4 card widget with user role example

bs4 card widget with user role

Bootstrap social blog post widget with commets example

social blog post widget with commets

Bootstrap bs5 dark footer example

bs5 dark footer

Bootstrap bs4 seller cards example

bs4 seller cards

Bootstrap company invoice example

company invoice

Bootstrap bs4 compose email example

bs4 compose email

Bootstrap bs4 card block example

About this bootstrap snippet

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

Bootstrap 4.1.1

This snippet 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

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working