Bootstrap snippet and html example. blog content page

Bootstrap 3.3.6 snippet "blog content page" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: blog,item,list

HTML code

Clean, semantic HTML that powers this Bootstrap 3.3.6 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.


<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<section class="content-item grey" id="blog-timeline">
        <div class="container">
            <div class="row">
                
                <!-- BLOG POSTS - START -->
                <div class="col-sm-8">
                  <h2>Our Blog</h2>
                    <div class="timeline">
                    
                      <!-- BLOG POST 1 - START -->
                        <div class="blog-post">
                          <div class="blog-info">
                              <img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="img-responsive" alt="">
                                <div class="date"><div class="number">18</div><div>Dec</div></div>
                            </div>
                            <h3><a href="#blogitem.html">Introducing WordPress 4.0 “Benny”</a></h3>
                            <div class="date-xs">18/12/2014</div>
                            <p><img class="img-responsive pull-right" src="https://www.bootdey.com/image/266x200/" alt="">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis lacus ac semper viverra. Etiam consequat odio sollicitudin metus condimentum, quis hendrerit erat adipiscing. Cras non turpis ut eros varius laoreet a ut felis. Aliquam sodales, purus pulvinar tincidunt congue, elit mauris sodales nisl, consequat iaculis urna enim in lectus. Proin at ornare lacus.</p>
                          <ul class="blog-tags list-unstyled list-inline">
                                <li><a href="#"><i class="fa fa-tag"></i>book</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>music</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>nature</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>read</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>songs</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>sunshine</a></li>  
                            </ul>
                        </div>
                        <!-- BLOG POST 1 - END -->
                        
                        <!-- BLOG POST 2 - START -->
                        <div class="blog-post">
                          <div class="blog-info">
                              <img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-responsive" alt="">
                                <div class="date"><div class="number">09</div><div>Dec</div></div>
                            </div>
                            <h3><a href="#blogitem.html">Nature Center: Earth Day Festival</a></h3>
                            <p><img class="img-responsive pull-right" src="https://www.bootdey.com/image/266x200/" alt="">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis lacus ac semper viverra. Etiam consequat odio sollicitudin metus condimentum, quis hendrerit erat adipiscing. Cras non turpis ut eros varius laoreet a ut felis. Aliquam sodales, purus pulvinar tincidunt congue, elit mauris sodales nisl, consequat iaculis urna enim in lectus. Proin at ornare lacus.</p>
                          <ul class="blog-tags list-unstyled list-inline">
                                <li><a href="#"><i class="fa fa-tag"></i>book</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>music</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>nature</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>read</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>songs</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>sunshine</a></li>  
                            </ul>
                        </div>
                        <!-- BLOG POST 2 - END -->
                        
                        <!-- BLOG POST 3 - START -->
                        <div class="blog-post">
                          <div class="blog-info">
                              <img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="img-responsive" alt="">
                                <div class="date"><div class="number">25</div><div>Nov</div></div>
                            </div>
                            <h3><a href="#blogitem.html">Two New Stores Set to Open in Downtown</a></h3>
                            <p><img class="img-responsive pull-right" src="https://www.bootdey.com/image/266x200/" alt="">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis lacus ac semper viverra. Etiam consequat odio sollicitudin metus condimentum, quis hendrerit erat adipiscing. Cras non turpis ut eros varius laoreet a ut felis. Aliquam sodales, purus pulvinar tincidunt congue, elit mauris sodales nisl, consequat iaculis urna enim in lectus. Proin at ornare lacus.</p>
                          <ul class="blog-tags list-unstyled list-inline">
                                <li><a href="#"><i class="fa fa-tag"></i>book</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>music</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>nature</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>read</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>songs</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>sunshine</a></li>  
                            </ul>
                        </div>
                        <!-- BLOG POST 3 - END -->
                        
                        <!-- BLOG POST 4 - START -->
                        <div class="blog-post">
                          <div class="blog-info">
                              <img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="img-responsive" alt="">
                                <div class="date"><div class="number">19</div><div>Nov</div></div>
                            </div>
                            <h3><a href="#blogitem.html">We Have Moved to a New Office</a></h3>
                            <p><img class="img-responsive pull-right" src="https://www.bootdey.com/image/266x200/" alt="">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In venenatis lacus ac semper viverra. Etiam consequat odio sollicitudin metus condimentum, quis hendrerit erat adipiscing. Cras non turpis ut eros varius laoreet a ut felis. Aliquam sodales, purus pulvinar tincidunt congue, elit mauris sodales nisl, consequat iaculis urna enim in lectus. Proin at ornare lacus.</p>
                          <ul class="blog-tags list-unstyled list-inline">
                                <li><a href="#"><i class="fa fa-tag"></i>book</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>music</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>nature</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>read</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>songs</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>sunshine</a></li>  
                            </ul>
                        </div>
                        <!-- BLOG POST 4 - END -->
                        
                    </div>
                    
                    <div class="text-center">
                      <a href="##" class="btn btn-danger btn-lg">Load More</a>
                    </div>
                    
                </div>
                <!-- BLOG POSTS - END -->
                
                <!-- SIDEBAR - START -->
                <div class="col-sm-4">
                  <div class="sidebar">
                        <h3>Categories</h3>
                        <div class="box categories">
                            <ul class="list-unstyled">
                                <li><a href="#"><i class="fa fa-female"></i>Fashion</a></li>
                                <li><a href="#"><i class="fa fa-paint-brush"></i>Design</a></li>
                                <li><a href="#"><i class="fa fa-music"></i>Music</a></li>
                                <li><a href="#"><i class="fa fa-plane"></i>Travel</a></li>
                                <li><a href="#"><i class="fa fa-hashtag"></i>Uncategorized</a></li>
                            </ul>
                        </div>
                        <h3>Recent Posts</h3>
                        <div class="box posts">
                            <ul class="list-unstyled">
                                <li><i class="fa fa-chevron-right"></i><a href="#">Introducing WordPress 4.0 “Benny”</a><div>27/02/2014</div></li>
                                <li><i class="fa fa-chevron-right"></i><a href="#">Nature Center: Earth Day Festival</a><div>18/02/2014</div></li>
                                <li><i class="fa fa-chevron-right"></i><a href="#">Two New Stores Set to Open in Downtown</a><div>05/02/2014</div></li>
                            </ul>
                        </div>
                        <h3>Tags</h3>
                        <div class="box tags">
                            <ul class="blog-tags list-unstyled list-inline">
                                <li><a href="#"><i class="fa fa-tag"></i>book</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>music</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>nature</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>read</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>songs</a></li>
                                <li><a href="#"><i class="fa fa-tag"></i>sunshine</a></li>                            
                            </ul>
                        </div>
                    </div>
                </div>
                <!-- SIDEBAR - END -->
            </div>
        </div>
    </section>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.3.6 to keep the design, spacing, and responsiveness consistent.



body{margin-top:20px;}


.content-item {
    padding:30px 0;
	background-color:#FFFFFF;
}

.content-item.grey {
	background-color:#F0F0F0;
	padding:50px 0;
	height:100%;
}

.content-item h2 {
	font-weight:700;
	font-size:35px;
	line-height:45px;
	text-transform:uppercase;
	margin:20px 0;
}

.content-item h3 {
	font-weight:400;
	font-size:20px;
	color:#555555;
	margin:10px 0 15px;
	padding:0;
}

.content-headline {
	height:1px;
	text-align:center;
	margin:20px 0 70px;
}

.content-headline h2 {
	background-color:#FFFFFF;
	display:inline-block;
	margin:-20px auto 0;
	padding:0 20px;
}

.grey .content-headline h2 {
	background-color:#F0F0F0;
}

.content-headline h3 {
	font-size:14px;
	color:#AAAAAA;
	display:block;
}


#blog-timeline h2,
#blog-item h2 {
    margin:0 0 15px;
}

#blog-timeline .sidebar h3,
#blog-item .sidebar h3 {
	margin-top:15px;
}

.timeline {
    border-left:3px solid #BBBBBB;
    margin-left:110px;
    padding-left:25px;
}

.blog-post {
	background-color:#FFFFFF;
	padding:10px 25px;
	margin-bottom:60px;
}

.blog-post .date-xs {
	display:none;
}

.blog-post p {
	font-size:14px;
	line-height:23px;
	text-align:justify;
}

.blog-post p img {
	max-width:200px;	
}

.blog-post p img.pull-right {
	margin-left:15px;
}

.blog-post p img.pull-left {
	margin-right:15px;
}

.blog-post .blog-info {
	position:absolute;
	left:0;
	margin-top:-10px;
	width:100px;
	background-color:#FFFFFF;
	box-shadow:0 0 2px 1px rgba(0,0,0,0.2);
}

.blog-post .blog-info:after {
    width:20px;
	height:20px;
    position: absolute;
    right:-37px;
    top:21px;
	content:"";
	text-align:center;
	border-radius:50%;
	border:5px solid #F0F0F0;
}

.blog-post .blog-info .date {
	background-color:#FFFFFF;
	font-size:16px;
}

.blog-post .blog-info .date div {
	float:left;
	padding:8px 0 0 12px;
	font-weight:600;
}

.blog-post .blog-info .date div.number {
	padding:4px 10px;
	color:#FFFFFF;
	font-size:20px;
}

.box {
    background-color:#FFFFFF;
	padding:10px 20px;
	box-shadow:0 1px 2px 0 rgba(0,0,0,0.1);
	margin-bottom:20px;
}

.box h3 {
    margin:30px 0 5px;
	font-weight:bold;
}

.box ul {
	margin:0;
}

.box ul li {
	font-size:13px;
	border-bottom:1px dashed #DDDDDD;
	padding:10px 0;
	font-weight:600;
}

.box ul li:last-child {
	border-bottom:0;
}

.box ul li i {
	font-size:18px;
	margin-right:20px;
}

.box.categories ul li i {
	color:#BBBBBB;	
	position:relative;
	top:2px;
	width:20px;
}

.posts ul li a {
	font-size:14px;
	line-height:23px;
}

.posts ul li a:hover {
	color:#333333;	
}

.posts ul li div {
	font-size:13px;
	color:#999999;
	font-weight:bold;
	text-align:right;
	margin-top:5px;
}

.box.posts ul li i {
    color:#333333;
    font-size:14px;
    margin-right:10px;
}

.box.tags ul.blog-tags li {
	border:0;
}

ul.blog-tags li {
	padding:7px 0;
}

div ul.blog-tags li i,
div .box.tags ul li i {
	color:#FFFFFF;
	position:relative;
	top:1px;
	font-size:14px;
}
@media (max-width:1024px) {
    .blog-post p,
	.blog p,
	#comments .media p {
		text-align:left;
	}
}

/*------------------------------
    SMALL DEVICES
------------------------------*/

@media (min-width:768px) and (max-width:991px) {
	.overlay-wrapper .overlay a {
		font-size:15px;
		width:40px;
		height:40px;
		padding-top:9px;
	}
	
	#reference {
		min-height:430px;
	}
	
	#blog-timeline h2, 
	#blog-item h2 {
		font-size:30px;
	}
	
	.blog-post p img {
		max-width:100%;
		margin-bottom:10px;
	}
}

/*------------------------------
	EXTRA SMALL DEVICES
------------------------------*/

@media (max-width:767px) {
	.blog-post p img,
	.blog p img {
		max-width:100%;
		margin-bottom:10px;
	}
	
	#blog-timeline .sidebar,
	#blog-item .sidebar {
		margin-top:40px;
	}
	
	#gallery-item h2 {
		margin-top:20px;
	}
	
	.recent-post {
		margin-bottom:30px;
		text-align:center;
	}
	
	#event-info {
		padding-bottom:20px;
	}
	
	.event-info-item {
		margin-bottom:30px;
	}
}

Similar snippets

Bootstrap example and template. bs4 profile with timeline posts

bs4 profile with timeline posts

Bootstrap example and template. bs4 Latest Updates card

bs4 Latest Updates card

Bootstrap example and template. team members

team members

Bootstrap example and template. blog detail page

blog detail page

Bootstrap example and template. widget reminder

widget reminder

Bootstrap example and template. bs4 beta email inbox

bs4 beta email inbox

Bootstrap example and template. Invoice with company info and description

Invoice with company info and description

Bootstrap example and template. colored inbox mail list and compose

colored inbox mail list and compose

FAQ

How do I use this snippet?

Include Bootstrap 3.3.6, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.3.6.

Bootstrap example and template. blog content page

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 10.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

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