Bootstrap snippet. bs4 card block

This snippet was created to help web designers, front-end and back-end developer save time. Use it 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, paste, change, customize and run the following HTML code to get a result like the one shown 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://via.placeholder.com/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://via.placeholder.com/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://via.placeholder.com/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, paste, change, customize and run the following CSS code to get a result Like the one shown 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 colored users cards example

colored users cards

Bootstrap bs4 seller cards example

bs4 seller cards

Bootstrap bs4 widget image cards example

bs4 widget image cards

Bootstrap Colored user cards example

Colored user cards

Bootstrap social User Profile and layout example

social User Profile and layout

Bootstrap bs4 profile detail page example

bs4 profile detail page

Bootstrap simple team cards example

simple team cards

Bootstrap Forum post list example

Forum post list

Comments

Bootstrap snippets. bs4 card block

About this bootstrap snippet

This bootstrap snippet, bs4 card block, was published on Oct 20th 2018, 08:36 by Dey Dey and it is free.

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 1.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