Bootstrap snippet and html example. block products

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

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-6 col-xs-12">
            <div class="wp-block product">
                <figure>
                    <img alt="" src="https://www.bootdey.com/image/450x180/E6E6FA/000000" class="img-responsive img-center">
                </figure>
                <h2 class="product-title"><a href="">Nikon Coolpix L320</a></h2>
                <p>
                Lorem ipsum dolor sit amet consectetur adipisg elitm Ut tincidunt purus iaculis
                </p>
                <div class="wp-block-footer">
                    <span class="price pull-left">$233.33</span>
                    <a href="#" class="btn btn-sm btn-info btn-icon btn-cart pull-right">
                        <i class="fa fa-cart-plus"></i>
                        <span>Add to cart</span>
                    </a>
                </div>
            </div>
        </div>
        <div class="col-md-4 col-sm-6 col-xs-12">
            <div class="wp-block product">
                <figure>
                    <img alt="" src="https://www.bootdey.com/image/450x180/87CEFA/000000" class="img-responsive img-center">
                </figure>
                <h2 class="product-title"><a href="">Nikon Coolpix L320</a></h2>
                <p>
                Lorem ipsum dolor sit amet consectetur adipisg elitm Ut tincidunt purus iaculis
                </p>
                <div class="wp-block-footer">
                    <span class="price pull-left">$233.33</span>
                    <a href="#" class="btn btn-sm btn-info btn-icon btn-cart pull-right">
                        <i class="fa fa-cart-plus"></i>
                        <span>Add to cart</span>
                    </a>
                </div>
            </div>
        </div>
        <div class="col-md-4 col-sm-6 col-xs-12">
            <div class="wp-block product">
                <figure>
                    <img alt="" src="https://www.bootdey.com/image/450x180/FFB6C1/000000" class="img-responsive img-center">
                </figure>
                <h2 class="product-title"><a href="">Nikon Coolpix L320</a></h2>
                <p>
                Lorem ipsum dolor sit amet consectetur adipisg elitm Ut tincidunt purus iaculis
                </p>
                <div class="wp-block-footer">
                    <span class="price pull-left">$233.33</span>
                    <a href="#" class="btn btn-sm btn-info btn-icon btn-cart pull-right">
                        <i class="fa fa-cart-plus"></i>
                        <span>Add to cart</span>
                    </a>
                </div>
            </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;
  padding:15px;
  -webkit-transition: all .3s linear;
  transition: all .3s linear;
  position: relative;
  cursor: default;
  border-radius: 2px;
}

.wp-block.product {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #e0eded;
}

.wp-block:before, .wp-block:after {
  display: table;
  content: "";
}

.wp-block.product figure {
  padding-bottom: 15px;
  border-bottom: 1px solid #e0eded;
}

.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-block.product .product-title {
  margin: 10px 0 0 0;
  padding: 0;
  border-bottom: 0;
}

h2 {
  font-size: 25px;
}

.wp-block.product .product-title a {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.wp-block.product p {
  color: #616161;
}

.wp-block.product .wp-block-footer {
  border-top: 1px solid #e0eded;
  padding-top: 15px;
  padding-bottom:25px;
}

.wp-block.product .price {
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.btn-base {
  color: #fff !important;
  background-color: #3498db;
  border: 1px solid;
  border-color: #258cd1;
}

.btn-icon {
  position: relative;
}

.btn-icon.btn-sm span, .btn-icon.btn-sm input {
  padding-left: 35px;
}

.btn {
    border-radius: 0;
    border: 0;
    border-bottom: 4px solid #CCCCCC;
    margin:0;
    -webkit-box-shadow: 0 5px 5px -6px rgba(0,0,0,.3);
       -moz-box-shadow: 0 5px 5px -6px rgba(0,0,0,.3);
            box-shadow: 0 5px 5px -6px rgba(0,0,0,.3);
}

.btn-info {
    background-color: #39b3d7;
    border-color: #348fd2;
    text-shadow: 1px 1px 0 #238ed5;
}                

Similar snippets

Bootstrap example and template. bs4 product detail

bs4 product detail

Bootstrap example and template. dashboard user block

dashboard user block

Bootstrap example and template. Blog image Gallery Widget

Blog image Gallery Widget

Bootstrap example and template. bs4 user product list

bs4 user product list

Bootstrap example and template. timeline steps

timeline steps

Bootstrap example and template. image badge

image badge

Bootstrap example and template. bs4 beta comment list

bs4 beta comment list

Bootstrap example and template. contacts list table

contacts list table

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. block products

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