Bootstrap snippet and html example. image badge

Bootstrap 3.3.4 snippet "image badge" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: badge,image,gallery

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.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container bootstrap snippets bootdey">
    <div class="row">
        <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/FFB6C1/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner">
              <span class="fa fa-thumbs-o-up"></span>
            </a>
          </div>
      </div>
      <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/ADD8E6/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner badge-corner-base">
              <span class="fa fa-thumbs-o-up"></span>
            </a>
          </div>
      </div>
      <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/B0C4DE/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner badge-corner-alt">
              <span class="fa fa-thumbs-o-up"></span>
            </a>
          </div>
      </div>
        <hr>
        <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/FFB6C1/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner badge-corner-light">
              <span class="fa fa-heart"></span>
            </a>
          </div>
      </div>
      <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/D3D3D3/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner badge-corner-dark">
              <span class="fa fa-heart"></span>
            </a>
          </div>
      </div>
      <div class="col-md-4 col-sm-4 col-xs-6">
        <div class="relative">
            <img src="https://www.bootdey.com/image/400x260/48D1CC/000000" class="img-responsive" alt="">
            <a href="#" class="badge-corner badge-corner-orange">
              <span class="fa fa-heart"></span>
            </a>
          </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;
}

.mt-20 {
  margin-top: 20px !important;
}

.relative {
    position: relative;
}

.badge-corner:empty {
    display: inline-block;
}
.badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 66px solid #888;
    border-top-color: rgba(0, 0, 0, 0.3);
    border-left: 66px solid transparent;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}
.badge-corner span {
    position: absolute;
    top: -52px;
    left: -28px;
    font-size: 16px;
    color: #fff;
}
.badge-corner-base {
    border-top-color: #3498db;
}
.badge-corner-alt {
    border-top-color: #9cd70e;
}
.badge-corner-light {
    border-top-color: #ecf0f1;
}
.badge-corner-light span {
    color: #2c3e50;
}
.badge-corner-dark {
    border-top-color: #131313;
}
.badge-corner-orange {
    border-top-color: #ff8a3c;
}

.relative img{
    margin-top:6px;    
}

Similar snippets

Bootstrap example and template. gallery item

gallery item

Bootstrap example and template. blog post image widget

blog post image widget

Bootstrap example and template. blog page

blog page

Bootstrap example and template. Blog Gallery Widget

Blog Gallery Widget

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. shopping cart with selected products order summary and checkout button

shopping cart with selected products order summary and checkout button

Bootstrap example and template. alerts with arrow

alerts with arrow

Bootstrap example and template. Order history

Order history

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. image badge

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 19.8K+ 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