Bootstrap snippet. image post gallery like facebook

This snippet was created to help web designers, 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

Download
<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

Download

.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 Gallery with pagination example

Gallery with pagination

Bootstrap image gellery example

image gellery

Bootstrap gallery images profile example

gallery images profile

Bootstrap gallery with small images example

gallery with small images

Bootstrap bs5 dark footer example

bs5 dark footer

Bootstrap Contacts Grid Cards example

Contacts Grid Cards

Bootstrap Compose message form example

Compose message form

Bootstrap project details example

project details

Bootstrap image post gallery like facebook example

About this bootstrap snippet

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

Bootstrap 4.5.0

This snippet 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

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 snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working