Bootstrap snippet and html example. Blog Gallery Widget

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: blog,post,image,widget

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

<div class="container bootstrap snippets bootdey">
    <div class="row">
    <div class="col-md-6">
        <a href="javascript:;" class="widget widget-image">
            <div class="widget-image-cover">
                <img src="https://www.bootdey.com/image/520x300/87CEFA/000000" alt="">
            </div>
            <div class="widget-image-info">
                <h5>Consectetur adipiscing elit. </h5>
                <p>
                    Curabitur ullamcorper mi ut rutrum gravida commodo tellus.
                </p>
                <div class="row">
                    <div class="col-md-6">
                        <div class="widget-image-user">
                            <div class="widget-image-user-image">
                                <img src="https://bootdey.com/img/Content/user_1.jpg" alt="">
                            </div> 
                            <div class="widget-image-user-info">
                                <div>Haydar Juan</div>
                                <span>45 minutes ago</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="widget-image-rating-text">8,281 Reviews (4.0/5)</div>
                    </div>
                </div>
            </div>
        </a>
    </div>
    <div class="col-md-6">
        <a href="javascript:;" class="widget widget-image">
            <div class="widget-image-cover">
                <img src="https://www.bootdey.com/image/520x300/FFB6C1/000000" alt="">
            </div>
            <div class="widget-image-info">
                <h5>Consectetur adipiscing elit. </h5>
                <p>
                    Curabitur ullamcorper mi ut rutrum gravida commodo tellus.
                </p>
                <div class="row">
                    <div class="col-md-6">
                        <div class="widget-image-user">
                            <div class="widget-image-user-image">
                                <img src="https://bootdey.com/img/Content/user_2.jpg" alt="">
                            </div> 
                            <div class="widget-image-user-info">
                                <div>Haydar Juan</div>
                                <span>45 minutes ago</span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="widget-image-rating-text">8,281 Reviews (4.0/5)</div>
                    </div>
                </div>
            </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 3.3.4 included, to get the result that you can see in the preview selection

body{margin-top:20px;}

.widget.widget-image {
    overflow: hidden;
}

.widget {
    border: none;
    box-shadow: 0 2px 0 rgba(0,0,0,.07);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    background: #fff;
    padding: 20px;
    display: block;
}

.widget-image-cover {
    margin: -20px;
    padding: 100% 20px 20px;
    border-radius: 5px;
    overflow: hidden;
    background: #3C454D;
    position: relative;
}

.widget-image:hover .widget-image-cover img {
    max-width: 110%;
    min-height: 110%;
    margin-left: -5%;
    margin-top: -5%;
}

.widget-image .widget-image-cover img {
    transition: all .1s ease-in-out;
}

.widget-image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    max-width: 100%;
}

.widget-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,.8) 75%);
    padding: 20px;
    color: #fff;
}

.widget-image-info h5 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
}

.widget-image-info p {
    color: rgba(255,255,255,.9);
}

.row {
    margin: 0 -10px;
}

.row>[class*=col-] {
    padding: 0 10px;
}

.widget-image-user .widget-image-user-image {
    border-radius: 36px;
    float: left;
    width: 36px;
    background: #fff;
}

.widget-image-user .widget-image-user-info {
    margin-left: 46px;
}

.widget-image-user .widget-image-user-image img {
    max-width: 100%;
    border-radius: 36px;
}

Similar snippets

Bootstrap example and template. blog detail page

blog detail page

Bootstrap example and template. Photo post

Photo post

Bootstrap example and template. image with label

image with label

Bootstrap example and template. blog item

blog item

Bootstrap example and template. profile with data and skills

profile with data and skills

Bootstrap example and template. Invoice receipt

Invoice receipt

Bootstrap example and template. account setting or edit profile

account setting or edit profile

Bootstrap example and template. about me

about me

Bootstrap example and template. Blog Gallery Widget

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

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