Bootstrap snippet and html example. Blog post with image

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

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.2 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="posts">
<article class="post">

    
    <div class="banner-image">
      <a href="http://gayan.me/gaya/jekyll/update/2015/01/01/welcome-to-jekyll/" title="Welcome to Jekyll!">
      <img src="http://gayan.me/gaya/assets/images/sample-banner-image-1.jpg" alt="Welcome to Jekyll! ">
      </a>
    </div>
    

    <h1 class="post-title">
      <a href="http://gayan.me/gaya/jekyll/update/2015/01/01/welcome-to-jekyll/">
        Welcome to Jekyll!
      </a>
    </h1>

    <p class="post-meta">
    
      <span class="categories">
      jekyll and update
      </span> |
    
    <span class="post-date">
    Jan 1, 2015  
    </span>
    </p>

    <p>You will find this post in your <code>_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code>jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>


  </article>
	</div>
</div>

CSS code

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

.post, .page {
  margin-bottom: 2em;
  padding: 1em;
  background: #fff;
  -webkit-border-radius: 0.2em;
  -moz-border-radius: 0.2em;
  -ms-border-radius: 0.2em;
  -o-border-radius: 0.2em;
  border-radius: 0.2em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.post .banner-image, .page .banner-image, .post .banner_video, .page .banner_video {
  margin: -1em -1em 0 -1em;
  padding-bottom: 1em;
}

a, .post-title a {
  color: #205081;
}

h1, .h1 {
  font-size: 41px;
}
h1, .h1, h2, .h2, h3, .h3 {
  margin-top: 22px;
  margin-bottom: 11px;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.3;
  color: #333;
}

.post-meta {
  color: #777;
  padding: 1.5em 0 2em 0;
  letter-spacing: 1px;
}

p {
  margin: 0 0 11px;
  line-height: 1.6;
  font-size: 20px;
}

.container {
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
}

Similar snippets

Bootstrap example and template. user blog widget

user blog widget

Bootstrap example and template. social blog post widget with commets

social blog post widget with commets

Bootstrap example and template. blog post image widget

blog post image widget

Bootstrap example and template. Blog List App

Blog List App

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. documents app

documents app

Bootstrap example and template. check file manager

check file manager

Bootstrap example and template. top item list

top item list

FAQ

How do I use this snippet?

Include Bootstrap 3.3.2, 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.2.

Bootstrap example and template. Blog post with image

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 1.9K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.3.2

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

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

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