Bootstrap snippet and html example. Box gallery images

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: images,gallery,users

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

<div class="container">
<div class="superbox">
    <div class="superbox-list">
        <img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
    <div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar2.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar3.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar6.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar5.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar4.png"  alt="" class="superbox-img">
	</div>
	<div class="superbox-list">
		<img src="https://bootdey.com/img/Content/avatar/avatar1.png"  alt="" class="superbox-img">
	</div>
</div>
</div>

<div class="modal fade" id="showPhoto" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </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;}


.superbox {
    font-size: 0
}

.superbox-list {
    display: inline-block;
    width: 12.5%;
    margin: 0;
    position: relative
}

.superbox-list.active:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    border: 10px solid transparent;
    border-bottom-color: #2d353c;
    margin-left: -10px
}

.superbox-show {
    text-align: center;
    position: relative;
    background: #2d353c;
    width: 100%;
    float: left;
    padding: 25px;
    display: none
}

.superbox-img {
    max-width: 100%;
    width: 100%;
    cursor: pointer
}

.superbox-current-img {
    -webkit-box-shadow: 0 5px 35px rgba(0, 0, 0, .65);
    box-shadow: 0 5px 35px rgba(0, 0, 0, .65);
    max-width: 100%
}

.superbox-img:hover {
    opacity: .8
}

.superbox-close {
    opacity: .7;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    background: url(assets/plugins/superbox/img/close.gif) center center no-repeat;
    width: 35px;
    height: 35px
}

Javascript/Jquery code

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

$(function(){
    $('.superbox-img').click(function(){
        $('#showPhoto .modal-body').html($(this).clone());
        $('#showPhoto').modal('show');
    })
})
 

Similar snippets

Bootstrap example and template. followers list

followers list

Bootstrap example and template. bs4 beta friend list

bs4 beta friend list

Bootstrap example and template. User Profile with tabs

User Profile with tabs

Bootstrap example and template. image gellery

image gellery

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. profile with data and skills

profile with data and skills

Bootstrap example and template. check file manager

check file manager

Bootstrap example and template. single advisor profile

single advisor profile

Bootstrap example and template. Box gallery images

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 13.8K 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

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

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