Bootstrap snippet and html example. Colorful cards with gradient

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,gradient,Colored

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 mb-5">
      <div class="col-md-4 mb-5">
         <div class="card bg-primary mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-secondary mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-success mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-info mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-warning mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-danger mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-12 mt-4">
         <h3>Background Gradient</h3>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-primary bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-secondary bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-success bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-info bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-warning bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </div>
         </div>
      </div>
      <div class="col-md-4 mb-5">
         <div class="card bg-danger bg-gradient mb-3 text-center">
            <div class="card-body">
               <blockquote class="blockquote">
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
                  <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
               </blockquote>
            </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

.card:not([class*=card-outline-]) {
    border: 0;
}
.card {
    height: 100%;
    box-shadow: 0 9px 23px rgba(0, 0, 0, 0.09), 0 5px 5px rgba(0, 0, 0, 0.06) !important;
    -webkit-transition: box-shadow 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    -moz-transition: box-shadow 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    -o-transition: box-shadow 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transition: box-shadow 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    -webkit-border-radius: 0.4167rem;
    -moz-border-radius: 0.4167rem;
    -ms-border-radius: 0.4167rem;
    -o-border-radius: 0.4167rem;
    border-radius: 0.4167rem;
}
.blockquote {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

blockquote {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-left: .25rem solid #eceeef;
}
blockquote {
    margin: 0 0 1rem;
}
.blockquote p {
    font-size: 1.1rem;
}
.card .card-body p {
    margin-bottom: 1rem;
}

/* Backgrounds */

.bg-primary {
    color: #FFFFFF;
    background-color: #07a7e3 !important;
}

.bg-secondary {
    color: #FFFFFF;
    background-color: #4f5b60 !important;
}

.bg-success {
    color: #FFFFFF;
    background-color: #0ad251 !important;
}

.bg-info {
    color: #FFFFFF;
    background-color: #55d3f5 !important;
}

.bg-warning {
    color: #ac9a02 !important;
    background-color: #fce418 !important;
}

.bg-danger {
    color: #FFFFFF;
    background-color: #f43a59 !important;
}

.bg-dark {
    background-color: #122f3b !important;
}

.bg-light {
    background-color: #F7F7FA !important;
}

.bg-tranparent {
    background-color: transparent !important;
}

.bg-dark *,
.bg-danger *,
.bg-warning *,
.bg-info *,
.bg-success *,
.bg-secondary *,
.bg-primary *,
.bg-dark .batch-icon,
.bg-danger .batch-icon,
.bg-warning .batch-icon,
.bg-info .batch-icon,
.bg-success .batch-icon,
.bg-secondary .batch-icon,
.bg-primary .batch-icon {
    color: #FFFFFF;
}

.bg-gradient [class^="card-"],
.bg-gradient [class^="card-"] * {
    color: #FFFFFF !important;
}


/* Highlight Colors - Bottom Border */

.highlight-color-blue {
    color: #FFFFFF !important;
    background-color: #07a7e3 !important;
}

.highlight-color-green {
    color: #FFFFFF !important;
    background-color: #0ad251 !important;
}

.highlight-color-orange {
    color: #FFFFFF !important;
    background-color: #FC9131 !important;
}

.highlight-color-yellow {
    color: #FFFFFF !important;
    background-color: #F8D800 !important;
}

.highlight-color-red {
    color: #FFFFFF !important;
    background-color: #EA5455 !important;
}

.highlight-color-purple {
    color: #FFFFFF !important;
    background-color: #973999 !important;
}

.bg-gradient {
    color: #FFFFFF !important;
    background: #07a7e3;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #07a7e3 0%, #32dac3 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #07a7e3 0%, #32dac3 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #07a7e3 0%, #32dac3 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}

.bg-gradient [class^="card-"],
.bg-gradient [class^="card-"] * {
    color: #FFFFFF !important;
}

.bg-secondary.bg-gradient {
    color: #FFFFFF !important;
    background: #4f5b60;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #4f5b60 0%, #97a9b2 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #4f5b60 0%, #97a9b2 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #4f5b60 0%, #97a9b2 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

.bg-success.bg-gradient {
    color: #FFFFFF !important;
    background: #28C76F;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #28C76F 0%, #81FBB8 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #28C76F 0%, #81FBB8 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #28C76F 0%, #81FBB8 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

.bg-info.bg-gradient {
    color: #FFFFFF !important;
    background: #3677FF;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #3677FF 0%, #FFD26F 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #3677FF 0%, #FFD26F 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #3677FF 0%, #FFD26F 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

.bg-warning.bg-gradient {
    color: #4f5b60 !important;
    background: #FC9131;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #FC9131 0%, #FCCF31 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #FC9131 0%, #FCCF31 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #FC9131 0%, #FCCF31 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

.bg-danger.bg-gradient {
    color: #FFFFFF !important;
    background: #EA5455;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #EA5455 0%, #FC9131 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #EA5455 0%, #FC9131 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #EA5455 0%, #FC9131 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr=$qp-color-1, endColorstr=$qp-color-2, GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

Similar snippets

Bootstrap example and template. Colored user cards

Colored user cards

Bootstrap example and template. bs4 seller cards

bs4 seller cards

Bootstrap example and template. bs4 agent cards

bs4 agent cards

Bootstrap example and template. social network profile head

social network profile head

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. chat room

chat room

Bootstrap example and template. profile notification settings

profile notification settings

Bootstrap example and template. Note cards

Note cards

Bootstrap example and template. Colorful cards with gradient

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 10.6K 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