Bootstrap snippet and html example. blog post cards

Bootstrap 3.3.4 snippet "blog post cards" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: cards

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.4 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container bootstrap snippets bootdey">
    <div class="row">
        <div class="col-md-4">
            <div class="card card-favorite">
              <div class="card-img-container">
                <a href="#" style="background-image:url('https://www.bootdey.com/image/400x200/EE82EE/000000')" class="card-img"></a>
              </div>
              <div class="card-content">
                <div class="card-meta">
                  <span class="meta-date meta-box">
                    Jan 11         
                  </span>
                  <span class="meta-pulse meta-box">
                    <a href="#" class="card-share-number sharrre">50 Shares</a>
                  </span>
                </div>
                <h2>
                        <a href="#">
                      Lorem ipsum dolor sit amet, consectetur      
                  </a>   
                </h2>
              </div>
                <span class="meta-tags">
                  <a href="#" title="tags" class="tag">Php</a> 
              </span>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card card-favorite">
              <div class="card-img-container">
                <a href="#" style="background-image:url('https://www.bootdey.com/image/400x200/FF6347/000000')" class="card-img"></a>
              </div>
              <div class="card-content">
                <div class="card-meta">
                  <span class="meta-date meta-box">
                    Jul 16         
                  </span>
                  <span class="meta-pulse meta-box">
                    <a href="#" class="card-share-number sharrre">800 Shares</a>
                  </span>
                </div>
                <h2>
                        <a href="#">
                      Lorem ipsum dolor sit amet, consectetur      
                  </a>   
                </h2>
              </div>
                <span class="meta-tags">
                    <a href="#" title="tags" class="tag">Html</a> 
              </span>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card card-favorite">
              <div class="card-img-container">
                <a href="#" style="background-image:url('https://www.bootdey.com/image/400x200/48D1CC/000000')" class="card-img"></a>
              </div>
              <div class="card-content">
                <div class="card-meta">
                  <span class="meta-date meta-box">
                    Feb 18       
                  </span>
                  <span class="meta-pulse meta-box">
                    <a href="#" class="card-share-number sharrre">53 Shares</a>
                  </span>
                </div>
                <h2>
                        <a href="#">
                      Lorem ipsum dolor sit amet, consectetur      
                  </a>   
                </h2>
              </div>
                <span class="meta-tags">
                    <a href="#" title="tags" class="tag">Css</a> 
                </span>                
            </div>
        </div>
    </div>    
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.4 to keep the design, spacing, and responsiveness consistent.

body{margin-top:20px;}

.card {
    min-width: 0;
    margin: 20px 10px;
    width: 100%;    
    background: #0C0C0C;
    color: #696969;
    -webkit-transition: .3s ease all;
    transition: .3s ease all;
    border: none;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 30px;
}

.card .card-img-container .card-img {
  background-size: cover;
  background-position: top center;
  display: block;
  height: 175px;
}

.card .card-img {
  height: 150px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.card .card-img-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.card .card-content {
  padding: 20px 20px 40px;
  text-align: center;
}

.card .card-meta {
  font-size: 12px;
}

.card .meta-box {
  margin-right: 20px;
}

.card .card-content h2 {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
}

.card h2 a {
  color: #D0D0D0;
  -webkit-transition: .3s ease all;
  transition: .3s ease all;
}

a:hover{
    text-decoration:none;    
}

.card:hover h2 a {
  color: #FFF;
}

.card .meta-tags a:hover {
  color: #FFF;
}
.card .meta-tags .tag {
  background: #DD1B16;
  color: #f9c7c6;
}
.card .meta-tags a:last-child {
  margin-right: 0;
  border-bottom-right-radius: 5px;
}
.card .meta-tags a:first-child {
  border-top-left-radius: 5px;
}
.card .meta-tags a {
  display: inline-block;
  padding: 3px 8px;
  color: #FFF;
  -webkit-transition: .3s ease all;
  transition: .3s ease all;
}

Similar snippets

Bootstrap example and template. bs4 Home Contacts

bs4 Home Contacts

Bootstrap example and template. news widget

news widget

Bootstrap example and template. profile cards widget

profile cards widget

Bootstrap example and template. colored users cards

colored users cards

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. bs4 chat messenger

bs4 chat messenger

Bootstrap example and template. bs4 clear timeline

bs4 clear timeline

Bootstrap example and template. Recent Comments Admin Panel

Recent Comments Admin Panel

FAQ

How do I use this snippet?

Include Bootstrap 3.3.4, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.4.

Bootstrap example and template. blog post cards

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 13.3K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.4

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.4 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