Bootstrap snippet and html example. blog post image widget

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

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-6">
            <section class="widget">
                <div class="widget-controls">
                    <a href="#"><i class="fa fa-refresh"></i></a>
                    <a href="#" data-widgster="close"><i class="glyphicon glyphicon-remove"></i></a>
                </div>
                <div class="widget-body">
                    <div class="widget-top-overflow text-white">
                        <img src="https://www.bootdey.com/image/800x400/FFB6C1/000000">
                        <ul class="tags text-white pull-right">
                            <li><a href="#">design</a></li>
                            <li><a href="#">white</a></li>
                        </ul>
                    </div>
                    <div class="post-user mt-sm">
                        <span class="thumb pull-left mr">
                            <img class="img-circle" src="https://bootdey.com/img/Content/user_1.jpg" alt="...">
                        </span>
                        <h5 class="mb-xs mt-xs"><span class="fw-semi-bold">Maryna</span> Nilson</h5>
                        <p class="fs-mini text-muted"><time>25 mins</time> &nbsp; <i class="fa fa-map-marker"></i> &nbsp; near Amsterdam</p>
                    </div>
                    <p class="text-light fs-mini m">Lots of cool stuff is happening around you. Just calm down for a sec and listen. Colors, sounds,
                        thoughts, ideas. </p>
                </div>
                <footer class="bg-body-light">
                    <ul class="post-links no-separator">
                        <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> 427</span></a></li>
                        <li><a href="#"><i class="glyphicon glyphicon-comment"></i> 98</a></li>
                    </ul>
                </footer>
            </section>   
    </div>
    <div class="col-md-6">
            <section class="widget">
                <div class="widget-controls">
                    <a href="#"><i class="fa fa-refresh"></i></a>
                    <a href="#" data-widgster="close"><i class="glyphicon glyphicon-remove"></i></a>
                </div>
                <div class="widget-body">
                    <div class="widget-top-overflow text-white">
                        <img src="https://www.bootdey.com/image/800x400/87CEFA/000000">
                        <ul class="tags text-white pull-right">
                            <li><a href="#">design</a></li>
                            <li><a href="#">white</a></li>
                        </ul>
                    </div>
                    <div class="post-user mt-sm">
                        <span class="thumb pull-left mr">
                            <img class="img-circle" src="https://bootdey.com/img/Content/user_2.jpg" alt="...">
                        </span>
                        <h5 class="mb-xs mt-xs"><span class="fw-semi-bold">Maryna</span> Nilson</h5>
                        <p class="fs-mini text-muted"><time>25 mins</time> &nbsp; <i class="fa fa-map-marker"></i> &nbsp; near Amsterdam</p>
                    </div>
                    <p class="text-light fs-mini m">Lots of cool stuff is happening around you. Just calm down for a sec and listen. Colors, sounds,
                        thoughts, ideas. </p>
                </div>
                <footer class="bg-body-light">
                    <ul class="post-links no-separator">
                        <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> 427</span></a></li>
                        <li><a href="#"><i class="glyphicon glyphicon-comment"></i> 98</a></li>
                    </ul>
                </footer>
            </section>   
    </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;
    background:#eee;
}

.widget {
  position: relative;
  margin-bottom: 30px;
  padding: 0px 20px;
  background: #fff;
  border-radius: 3px;
}

.widget-controls {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  padding: 14px;
  font-size: 12px;
}

.widget-controls>a {
  padding: 1px 4px;
  border-radius: 4px;
  color:#fff;
  -webkit-transition: color 0.15s ease-in-out;
  -o-transition: color 0.15s ease-in-out;
  transition: color 0.15s ease-in-out;
}

.text-white {
  color: #fff;
}

.widget-top-overflow {
  margin-top: -15px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.widget-top-overflow, .widget-middle-overflow {
  position: relative;
  margin: 0 -20px;
}

.widget-top-overflow>img {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.widget-top-overflow>img, .widget-middle-overflow>img {
  max-width: 100%;
}

.widget-top-overflow>img+.tags {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 20px;
}

.tags {
  padding-left: 0;
  list-style: none;
}

.tags>li {
  float: left;
  margin:3px;
}

.tags>li>a {
  padding: 2px 8px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid white;
  color: inherit;
  text-decoration: none;
}

.mt-sm {
  margin-top: 10px;
}

.post-user {
  position: relative;
}

.mr {
  margin-right: 15px;
}

.thumb-xs, .thumb-sm, .thumb-lg, .thumb {
  position: relative;
  display: inline-block;
  text-align: center;
}

.thumb {
  width: 48px;
}

.thumb img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.post-user img {
  border: 3px solid white;
}

.fs-mini {
  font-size: 13px;
}

.text-light {
  opacity: .8;
}

.widget>footer {
  margin: 0 -20px -15px;
  padding: 30px 20px;
}

.bg-body-light {
  background-color: #f6f6f6;
}

.post-links {
  margin-bottom: 0;
  font-size: 12px;
  padding-left: 0;
}

.post-links>li {
  float: left;
  list-style: none;
  margin:4px;
}

Similar snippets

Bootstrap example and template. light contact list

light contact list

Bootstrap example and template. blog list page

blog list page

Bootstrap example and template. Profile options

Profile options

Bootstrap example and template. bs4 profile header card

bs4 profile header card

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. light user grid

light user grid

Bootstrap example and template. profile with data and skills

profile with data and skills

Bootstrap example and template. Email list page

Email list page

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 image widget

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