Bootstrap snippet and html example. image with label

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

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 col-sm-4 col-xs-12">
          <!-- Block Default - More info over block -->
          <div class="wp-block inverse no-margin">
                <div class="figure">
                    <img src="https://www.bootdey.com/image/400x400/FFB6C1/000000">
                  <div class="wp-block-info-over left">
                        <h2>
                            <span class="pull-left">
                                <a href="#">My favorite sport</a>
                                <span class="label label-primary">Lorem ipsum</span>
                            </span>
                        </h2>
                    </div>
                </div>
                <h2 class="title">Lovely template design</h2>
                <p>
                Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo.
                </p>
            </div>
        </div>
        <div class="col-md-4 col-sm-4 col-xs-12">
          <!-- Block Default - More info over block -->
          <div class="wp-block inverse no-margin">
                <div class="figure">
                    <img src="https://www.bootdey.com/image/400x400/87CEFA/000000">
                  <div class="wp-block-info-over left">
                        <h2>
                            <span class="pull-left">
                                <a href="#">This is a block label</a>
                                <span class="label label-primary">Lorem ipsum</span>
                            </span>
                        </h2>
                    </div>
                </div>
                <h2 class="title">Lovely template design</h2>
                <p>
                Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo.
                </p>
            </div>
        </div>
        <div class="col-md-4 col-sm-4 col-xs-12">
          <!-- Block Default - More info over block -->
          <div class="wp-block inverse no-margin">
                <div class="figure">
                    <img src="https://www.bootdey.com/image/400x400/FF7F50/000000">
                  <div class="wp-block-info-over left">
                        <h2>
                            <span class="pull-left">
                                <a href="#">Creating my new app</a>
                                <span class="label label-primary">Lorem ipsum</span>
                            </span>
                        </h2>
                    </div>
                </div>
                <h2 class="title">Lovely template design</h2>
                <p>
                Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo.
                </p>
            </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.

.wp-block {
  margin: 0 0 15px 0;
  -webkit-transition: all .3s linear;
  transition: all .3s linear;
  position: relative;
  cursor: default;
  border-radius: 2px;
}
a:hover{
    text-decoration:none;
}

.no-margin {
  margin: 0 !important;
}

.wp-block.inverse .figure {
  position: relative;
}

.wp-block.inverse .figure img {
  width: 100%;
}

.wp-block-info-over.left {
  background: transparent;
  border: 0;
  padding: 0;
  position: absolute;
  bottom: 55px;
  left: 0;
}

.wp-block-info-over {
  width: 100%;
  padding: 10px;
  background: #9cd70e;
  border-top: 1px solid #e0eded;
}

.wp-block-info-over.left h2 {
  font-size: 13px;
  font-weight: normal;
}

.wp-block.inverse h2, .wp-block.inverse .title {
  margin: 0;
  padding: 12px 15px 0 0;
  font-weight: 500;
  font-size: 16px;
  color: #333;
  text-transform: none;
}

.wp-block-info-over.left h2 a {
  padding: 10px 15px 20px 15px;
  margin: 0;
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 600;
  background: rgba(51,51,51,0.8);
  background: #2c3e50;
  color: #fff;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.wp-block-info-over.left h2 .label {
  position: absolute;
  bottom: -30px;
  left: 15px;
  padding: .5em .6em .5em;
}

.wp-block.inverse h2, .wp-block.inverse .title {
  margin: 0;
  padding: 12px 15px 0 0;
  font-weight: 500;
  font-size: 16px;
  color: #333;
  text-transform: none;
}

.label {
  border-radius: 0;
}

Similar snippets

Bootstrap example and template. image badge

image badge

Bootstrap example and template. blog page

blog page

Bootstrap example and template. blog post image widget

blog post image widget

Bootstrap example and template. block products

block products

Bootstrap example and template. image gellery

image gellery

Bootstrap example and template. Forum post list

Forum post list

Bootstrap example and template. profile edit data and skills

profile edit data and skills

Bootstrap example and template. shop product detail

shop product detail

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 with label

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.2K+ 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