Bootstrap snippet and html example. image post gallery like facebook

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

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 4.5.0 included, to get the result that you can see in the preview selection

<div class="container profile mb-4">
    <div class="profile-img-list">
        <div class="profile-img-list-item main"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/6495ED/000000)"></span></a></div>
        <div class="profile-img-list-item main"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/5F9EA0/000000)"></span></a></div>
        <div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/FF7F50/000000)"></span></a></div>
        <div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/DC143C/000000)"></span></a></div>
        <div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/FFB6C1/000000)"></span></a></div>
        <div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/00008B/000000)"></span></a></div>
    </div>
</div>
<br>
<div class="container profile">
    <div class="profile-img-list">
		<div class="profile-img-list-item main"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/FFB6C1/000000)"></span></a></div>
		<div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/9932CC/000000)"></span></a></div>
		<div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/00CED1/000000)"></span></a></div>
		<div class="profile-img-list-item"><a href="#" class="profile-img-list-link"><span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/1E90FF/000000)"></span></a></div>
		<div class="profile-img-list-item with-number">
			<a href="#" class="profile-img-list-link">
				<span class="profile-img-content" style="background-image: url(https://www.bootdey.com/image/350x280/1E90FF/000000)"></span>
				<div class="profile-img-number">+12</div>
			</a>
		</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 4.5.0 included, to get the result that you can see in the preview selection


.profile {
margin-top:20px;
margin-bottom:60px;
}
.profile .profile-img-list {
    list-style-type: none;
    margin: -0.0625rem -1.3125rem;
    padding: 0;
}
.profile .profile-img-list:after,
.profile .profile-img-list:before {
    content: "";
    display: table;
    clear: both;
}
.profile .profile-img-list .profile-img-list-item {
    float: left;
    width: 25%;
    padding: 0.0625rem;
}
.profile .profile-img-list .profile-img-list-item.main {
    width: 50%;
}
.profile .profile-img-list .profile-img-list-item .profile-img-list-link {
    display: block;
    padding-top: 75%;
    overflow: hidden;
    position: relative;
}
.profile .profile-img-list .profile-img-list-item .profile-img-list-link .profile-img-content,
.profile .profile-img-list .profile-img-list-item .profile-img-list-link img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.profile .profile-img-list .profile-img-list-item .profile-img-list-link .profile-img-content:before,
.profile .profile-img-list .profile-img-list-item .profile-img-list-link img:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(60, 78, 113, 0.15);
}
.profile .profile-img-list .profile-img-list-item.with-number .profile-img-number {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.625rem;
    margin-top: -0.8125rem;
    text-align: center;
}

Similar snippets

Bootstrap example and template. gallery with small images

gallery with small images

Bootstrap example and template. Gallery of images

Gallery of images

Bootstrap example and template. Awesome portfolio

Awesome portfolio

Bootstrap example and template. collage gallery

collage gallery

Bootstrap example and template. white chat

white chat

Bootstrap example and template. profile edit data and skills

profile edit data and skills

Bootstrap example and template. profile with data and skills

profile with data and skills

Bootstrap example and template. newsfeed friends list

newsfeed friends list

Bootstrap example and template. image post gallery like facebook

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 7.4K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 4.5.0

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

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