Bootstrap snippet and html example. Thumbnail image gallery

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: gallery,images

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container">
<div class="row gallery shuffle">
    <!-- ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/1.jpg"><img  src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/1.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Mountains</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">10 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart-o"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/2.jpg">
            <img alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/2.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Empire State Pigeon</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">1 hour</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/3.jpg">
            <img src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/3.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Big Lake</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/4.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/4.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Forest</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/5.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/5.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Smile</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart-o"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered" >
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/6.jpg">
            <img alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/6.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Smile</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">1 hour</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered">
        <div class="thumbnail">
            <a href="assets/images/pictures/8.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/8.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Fog</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered">
        <div class="thumbnail">
            <a href="assets/images/pictures/9.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/9.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Beach</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart-o"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/10.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/10.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Pause</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">3 hour</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/11.jpg">
            <img alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/11.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Space</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">3 hour</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered" >
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/13.jpg">
            <img  alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/13.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Shuttle</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">35 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- end ngRepeat: item in items -->
    <div class="col-sm-6 col-md-3 gallery-item ng-scope shuffle-item filtered">
        <div class="thumbnail">
            <a href="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/14.jpg">
            <img alt="..." src="http://demo.flatlogic.com/sing-wrapbootstrap-2.1.0-plus/angular/assets/images/pictures/14.jpg">
            </a>
            <div class="caption">
                <h5 class="mt-0 mb-xs ng-binding">Sky</h5>
                <ul class="post-links">
                    <li><a href="#" class="ng-binding">2 mins</a>
                    </li>
                    <li><a href="#"><span class="text-danger"><i class="fa fa-heart-o"></i> Like</span></a>
                    </li>
                    <li><a href="#">Details</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection

body{margin-top:20px;}


.gallery .thumbnail a {
    display: inline-block;
    overflow: hidden;
    max-width: 100%
}

.gallery .thumbnail a>img {
    -webkit-transition: -webkit-transform .15s ease;
    transition: transform .15s ease;
    transition: transform .15s ease, -webkit-transform .15s ease
}

.gallery .thumbnail:hover a>img {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1)
}

.gallery .post-links>li>a {
    display: inline
}

.gallery .post-links>li>a {
    display: inline;
}

.gallery .thumbnail a {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
}

.post-links>li>a {
    text-decoration: none;
    color: #999;
}

.gallery>div {
    max-width: 100%
}

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.428571429;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out
}

.thumbnail a>img,
.thumbnail>img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto
}

.thumbnail .caption {
    padding: 9px;
    color: #555
}

.mb-xs {
    margin-bottom: 5px;
}
.mt-0, .mt-n-0 {
    margin-top: 0;
}
.h5, h5 {
    font-size: 14px;
}

a.thumbnail.active,
a.thumbnail:focus,
a.thumbnail:hover {
    border-color: #218bc3
}

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

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

.gallery .post-links>li>a {
    display: inline;
}
.gallery .thumbnail a {
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
}
.post-links>li>a {
    text-decoration: none;
    color: #999;
}

.post-links>li+li:before {
    color: #999;
    content: "\25cf";
    padding: 0 8px;
}

Similar snippets

Bootstrap example and template. Box gallery images

Box gallery images

Bootstrap example and template. image gellery

image gellery

Bootstrap example and template. collage gallery

collage gallery

Bootstrap example and template. social media resumen profile

social media resumen profile

Bootstrap example and template. div ribbons

div ribbons

Bootstrap example and template. social network user profile example

social network user profile example

Bootstrap example and template. Jobs tabs

Jobs tabs

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Thumbnail image gallery

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 762 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.3.6

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

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

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