Bootstrap snippet and html example. Vertical Timeline with lines

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: timeline,vertical

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

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/5.3.45/css/materialdesignicons.min.css" integrity="sha256-nwNjrH7J9zS/Ti4twtWX7OsC5QdQHCIKTv5cLMsGo68=" crossorigin="anonymous" />

<div class="container">
<div class="row">
<div class="col-lg-12">
    <div class="card">
        <div class="card-body">
            <h4 class="card-title mb-5">Vertical Timeline</h4>

            <div class="row justify-content-center">
                <div class="col-lg-10">
                    <ul class="verti-timeline list-unstyled" dir="ltr">
                        <li class="event-list">
                            <div class="timeline-icon">
                                <i class="mdi mdi-adjust bg-success"></i>
                            </div>
                            <div class="event-content p-4">
                                <h5 class="mt-0 mb-3 font-18">Timeline Event One</h5>
                                <div class="text-muted">
                                    <p class="mb-2">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et</p>
                                    <p class="mb-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit</p>
                                </div>
                            </div>
                            <div class="event-date bg-primary">
                                <h5 class="mt-0">02</h5>
                                <p class="mb-0 text-white-50">June</p>
                            </div>
                        </li>

                        <li class="event-list">
                            <div class="timeline-icon">
                                <i class="mdi mdi-adjust bg-danger"></i>
                            </div>
                            <div class="event-content p-4">
                                <h5 class="mt-0 mb-3 font-18">Timeline Event Two</h5>
                                <div class="text-muted">
                                    <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo enim ipsam voluptatem quia voluptas sit</p>
                                    <button type="button" class="btn btn-primary waves-effect waves-light">See more detail</button>
                                </div>
                            </div>
                            <div class="event-date bg-primary">
                                <h5 class="mt-0">05</h5>
                                <p class="mb-0 text-white-50">June</p>
                            </div>
                        </li>

                        <li class="event-list">
                            <div class="timeline-icon">
                                <i class="mdi mdi-adjust bg-primary"></i>
                            </div>
                            <div class="event-content p-4">
                                <h5 class="mt-0 mb-3 font-18">Timeline Event Three</h5>
                                <div class="text-muted">
                                    <p class="mb-4">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et</p>
                                    <img src="assets/images/small/img-1.jpg" alt="" class="rounded m-1" style="width: 120px;">
                                    <img src="assets/images/small/img-2.jpg" alt="" class="rounded m-1" style="width: 120px;">

                                </div>
                            </div>
                            <div class="event-date bg-primary">
                                <h5 class="mt-0">07</h5>
                                <p class="mb-0 text-white-50">June</p>
                            </div>
                        </li>
                        
                        <li class="event-list">
                            <div class="timeline-icon">
                                <i class="mdi mdi-adjust bg-warning"></i>
                            </div>
                            <div class="event-content p-4">
                                <h5 class="mt-0 mb-3 font-18">Timeline Event Four</h5>
                                <div class="text-muted">
                                    <p class="mb-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo enim ipsam sit aspernatur aut odit aut fugit</p>
                                </div>
                                
                            </div>
                            <div class="event-date bg-primary">
                                <h5 class="mt-0">08</h5>
                                <p class="mb-0 text-white-50">June</p>
                            </div>
                            
                        </li>
                    </ul>

                </div>
            </div>
            <!-- end row -->
        </div>
    </div>
    <!-- end card -->
</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.4.1 included, to get the result that you can see in the preview selection

body{
    background:#eee;
    margin-top:20px;
}
.verti-timeline {
    border-left: 3px dashed #e9ecef;
    margin: 0 10px;
}
.verti-timeline .event-list {
    position: relative;
    padding: 40px 15px 40px;
    border-top: 3px solid #e9ecef;
}
.verti-timeline .event-list .event-date {
    position: absolute;
    right: 0;
    top: -2px;
    padding: 12px;
    color: #fff;
    border-radius: 0 0 7px 7px;
    text-align: center;
}
.verti-timeline .event-list .event-content {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 7px;
    text-align: center;
}
.verti-timeline .event-list .event-content::before {
    content: "";
    position: absolute;
    height: 40px;
    width: 75%;
    top: -42px;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-left: 12px double #e9ecef;
    border-right: 12px double #e9ecef;
}
.verti-timeline .event-list .timeline-icon {
    position: absolute;
    left: -14px;
    top: -10px;
}
.verti-timeline .event-list .timeline-icon i {
    display: inline-block;
    width: 23px;
    height: 23px;
    line-height: 23px;
    font-size: 20px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
}
.verti-timeline .event-list:last-child {
    padding-bottom: 0;
}
@media (min-width: 769px) {
    .verti-timeline {
        margin: 0 60px;
    }
    .verti-timeline .event-list {
        padding: 40px 90px 60px 40px;
    }
}
@media (max-width: 576px) {
    .verti-timeline .event-list .event-date {
        right: -20px;
    }
}
.card {
    border: none;
    margin-bottom: 24px;
    -webkit-box-shadow: 0 0 13px 0 rgba(236,236,241,.44);
    box-shadow: 0 0 13px 0 rgba(236,236,241,.44);
}

Similar snippets

Bootstrap example and template. bs4 beta timeline

bs4 beta timeline

Bootstrap example and template. colored timeline

colored timeline

Bootstrap example and template. bs4 timeline color row

bs4 timeline color row

Bootstrap example and template. timeline with year and date

timeline with year and date

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. WhatsUp Messenger

WhatsUp Messenger

Bootstrap example and template. 2FA Security form

2FA Security form

Bootstrap example and template. profile with team section

profile with team section

Bootstrap example and template. Vertical Timeline with lines

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

Bootstrap 4.4.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.4.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