HTML code
Clean, semantic HTML that powers this Bootstrap 4.3.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container mb80">
<div class="page-timeline">
<div class="vtimeline-point">
<div class="vtimeline-icon">
<i class="fa fa-image"></i>
</div>
<div class="vtimeline-block">
<span class="vtimeline-date">June 25, 2017</span><div class="vtimeline-content">
<a href="#"><img src="https://www.bootdey.com/image/700x400" alt="" class="img-fluid mb20"></a>
<a href="#"><h3>Standard post title</h3></a>
<ul class="post-meta list-inline">
<li class="list-inline-item">
<i class="fa fa-user-circle-o"></i> <a href="#">John Doe</a>
</li>
<li class="list-inline-item">
<i class="fa fa-calendar-o"></i> <a href="#">29 June 2017</a>
</li>
<li class="list-inline-item">
<i class="fa fa-tags"></i> <a href="#">Bootstrap4</a>
</li>
</ul>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur in iaculis ex. Etiam volutpat laoreet urna. Morbi ut tortor nec nulla commodo malesuada sit amet vel lacus. Fusce eget efficitur libero. Morbi dapibus porta quam laoreet placerat.
</p><br>
<a href="#" class="btn btn-outline-secondary btn-sm">Read More</a>
</div>
</div>
</div>
<div class="vtimeline-point">
<div class="vtimeline-icon">
<i class="fa fa-image"></i>
</div>
<div class="vtimeline-block">
<span class="vtimeline-date">June 25, 2017</span><div class="vtimeline-content">
<div class="embed-responsive embed-responsive-21by9 mb20">
<iframe src="https://www.youtube.com/embed/htPYk6QxacQ?ecver=2" style="position:absolute;width:100%;height:100%;left:0" width="640" height="360" frameborder="0" allowfullscreen=""></iframe>
</div>
<a href="#"><h3>Standard post title</h3></a>
<ul class="post-meta list-inline">
<li class="list-inline-item">
<i class="fa fa-user-circle-o"></i> <a href="#">John Doe</a>
</li>
<li class="list-inline-item">
<i class="fa fa-calendar-o"></i> <a href="#">29 June 2017</a>
</li>
<li class="list-inline-item">
<i class="fa fa-tags"></i> <a href="#">Bootstrap4</a>
</li>
</ul>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur in iaculis ex. Etiam volutpat laoreet urna. Morbi ut tortor nec nulla commodo malesuada sit amet vel lacus. Fusce eget efficitur libero. Morbi dapibus porta quam laoreet placerat.
</p><br>
<a href="#" class="btn btn-outline-secondary btn-sm">Read More</a>
</div>
</div>
</div>
<div class="vtimeline-point">
<div class="vtimeline-icon">
<i class="fa fa-image"></i>
</div>
<div class="vtimeline-block">
<span class="vtimeline-date">June 25, 2017</span><div class="vtimeline-content">
<a href="#"><img src="https://www.bootdey.com/image/700x400" alt="" class="img-fluid mb20"></a>
<a href="#"><h3>Standard post title</h3></a>
<ul class="post-meta list-inline">
<li class="list-inline-item">
<i class="fa fa-user-circle-o"></i> <a href="#">John Doe</a>
</li>
<li class="list-inline-item">
<i class="fa fa-calendar-o"></i> <a href="#">29 June 2017</a>
</li>
<li class="list-inline-item">
<i class="fa fa-tags"></i> <a href="#">Bootstrap4</a>
</li>
</ul>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur in iaculis ex. Etiam volutpat laoreet urna. Morbi ut tortor nec nulla commodo malesuada sit amet vel lacus. Fusce eget efficitur libero. Morbi dapibus porta quam laoreet placerat.
</p><br>
<a href="#" class="btn btn-outline-secondary btn-sm">Read More</a>
</div>
</div>
</div>
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 4.3.1 to keep the design, spacing, and responsiveness consistent.
Downloadbody{
margin-top:20px;
background:#f3f3f3;
}
/*
Timeline
*/
.page-timeline {
margin: 30px auto 0 auto;
position: relative;
max-width: 1000px;
}
.page-timeline:before {
position: absolute;
content: '';
top: 0;
bottom: 0;
left: 303px;
right: auto;
height: 100%;
width: 3px;
background: #3498db;
z-index: 0;
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
}
.page-timeline:after {
position: absolute;
content: '';
width: 3px;
height: 40px;
background: #3498db;
background: -webkit-linear-gradient(top, #4782d3, rgba(52, 152, 219, 0));
background: linear-gradient(to bottom, #4782d3, rgba(52, 152, 219, 0));
top: 100%;
left: 303px;
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
}
.vtimeline-content {
margin-left: 350px;
background: #fff;
border: 1px solid #e6e6e6;
padding: 35px 20px;
border-radius: 3px;
text-align: left;
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
}
.vtimeline-content h3 {
font-size: 1.5em;
font-weight: 600;
display: inline-block;
margin: 0;
}
.vtimeline-content p {
font-size: 0.9em;
margin: 0;
}
.vtimeline-point {
position: relative;
display: block;
vertical-align: top;
margin-bottom: 30px;
}
.vtimeline-icon {
position: relative;
color: #fff;
width: 50px;
height: 50px;
background: #4782d3;
border-radius: 50%;
float: left;
text-align: center;
line-height: 50px;
z-index: 99;
margin-left: 280px;
}
.vtimeline-icon i {
display: block;
font-size: 1.5em;
line-height: 50px;
}
.vtimeline-date {
width: 260px;
text-align: right;
position: absolute;
left: 0;
top: 10px;
font-weight: 400;
color: #374054;
}
.post-meta {
padding-top: 15px;
margin-bottom: 20px;
}
.post-meta li:not(:last-child) {
margin-right: 10px;
}
h3 {
font-family: "Montserrat", sans-serif;
color: #252525;
font-weight: 700;
font-variant-ligatures: common-ligatures;
margin-top: 0;
letter-spacing: -0.2px;
line-height: 1.3;
}
.mb20 {
margin-bottom: 20px !important;
}FAQ
How do I use this snippet?
Include Bootstrap 4.3.1, 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 4.3.1.
About this bootstrap example/template
This free Bootstrap 4.3.1 snippet, bs4 blog timeline, was published on Jul 11th 2019, 07:53 by Bootdey Admin.
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 11.2K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
Bootstrap 4.3.1
<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.3.1 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