Bootstrap snippet and html example. bs4 beta timeline

Bootstrap 4.0.0-beta snippet "bs4 beta timeline" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: timeline,profile

HTML code

Clean, semantic HTML that powers this Bootstrap 4.0.0-beta 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">
<div class="container">
<div class="timeline-wrapper">
    <div class="pk-timeline">
        <div class="pk-tl-block">
            <div class="pk-tl-icon"><i class="fa fa-file-text-o"></i></div>
            <div class="pk-tl-info"><strong>11-17-2016</strong>
                <br>posted a new blog</div>
            <div class="pk-tl-content">
                <div class="pk-tl-avatar"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""></div>
                <div class="pk-tl-content-text">
                    <h5>Lorem ipsum dolor sit amet.</h5>
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam veritatis, excepturi sunt. Nobis maxime voluptate aspernatur vero quisquam provident sint mollitia debitis repellat, voluptas perspiciatis iusto, nulla fuga quia libero!</p>
                </div>
            </div>
            <!-- /.pk-tl-content -->
        </div>
        <!-- /.pk-tl-block -->
        <div class="pk-tl-block">
            <div class="pk-tl-icon"><i class="fa fa-photo"></i></div>
            <div class="pk-tl-info"><strong>11-17-2016</strong>
                <br>posted a new blog</div>
            <div class="pk-tl-content">
                <div class="pk-tl-avatar"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""></div>
                <div class="pk-tl-content-media"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""></div>
            </div>
            <!-- /.pk-tl-content -->
        </div>
        <!-- /.pk-tl-block -->
        <div class="pk-tl-block">
            <div class="pk-tl-icon"><i class="fa fa-photo"></i></div>
            <div class="pk-tl-info"><strong>11-17-2016</strong>
                <br>posted a new blog</div>
            <div class="pk-tl-content">
                <div class="pk-tl-avatar"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""></div>
                <div class="pk-tl-content-media"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""></div>
            </div>
            <!-- /.pk-tl-content -->
        </div>
        <!-- /.pk-tl-block -->
        <div class="pk-tl-block">
            <div class="pk-tl-icon"><i class="fa fa-file-text-o"></i></div>
            <div class="pk-tl-info"><strong>11-17-2016</strong>
                <br>posted a new blog</div>
            <div class="pk-tl-content">
                <div class="pk-tl-avatar"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt=""></div>
                <div class="pk-tl-content-text">
                    <h5>Lorem ipsum dolor sit amet.</h5>
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam veritatis, excepturi sunt. Nobis maxime voluptate aspernatur vero quisquam provident sint mollitia debitis repellat, voluptas perspiciatis iusto, nulla fuga quia libero!</p>
                </div>
            </div>
            <!-- /.pk-tl-content -->
        </div>
        <!-- /.pk-tl-block -->
    </div>
    <!-- /.pk-timeline -->
</div>
</div>

CSS code

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

body{
    background:#FCFCFC;    
}

.pk-timeline {
    position: relative
}

.pk-timeline:before {
    content: "";
    width: 2px;
    background-color: #eceeef;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem
}

@media (min-width:768px) {
    .pk-timeline:before {
        left: 50%
    }
}

.pk-tl-block {
    position: relative;
    padding: 1.5rem;
    padding-left: 2rem;
    margin-bottom: 1.5rem
}

.pk-tl-block:after {
    display: block;
    content: "";
    clear: both
}

.pk-tl-block:last-child {
    margin-bottom: 0
}

@media (min-width:768px) {
    .pk-tl-block {
        padding-left: 1.5rem;
        margin-bottom: 0
    }
}

.pk-tl-icon {
    width: 50px;
    height: 50px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 1.13rem;
    font-weight: 600;
    border-radius: 500px;
    background: #60c84c;
    border: 5px solid #fff;
    box-shadow: 0 0 1px #ddd;
    position: absolute;
    top: 1.5rem;
    left: 9px
}

@media (min-width:768px) {
    .pk-tl-icon {
        top: calc(50% - 25px);
        left: calc(50% - 25px)
    }
}

.pk-tl-info {
    position: absolute;
    top: 1.5rem;
    left: 170px
}

@media (min-width:768px) {
    .pk-tl-info {
        top: calc(50% - 25px);
        left: calc(50% + 50px)
    }
    .pk-tl-block:nth-child(odd) .pk-tl-info {
        right: calc(50% + 50px);
        left: auto
    }
}

.pk-tl-content {
    position: relative;
    background: #fff;
    border-radius: .25rem;
    border: 1px solid #eceeef;
    box-shadow: 0 0 12px #eee;
    padding: .5rem;
    margin-left: 1.5rem;
    margin-top: 50px
}

@media (min-width:768px) {
    .pk-tl-content {
        width: 43%;
        margin: 0
    }
    .pk-tl-block:nth-child(odd) .pk-tl-content {
        float: right
    }
}

.pk-tl-avatar {
    width: 80px;
    height: 80px;
    padding: 5px;
    background: #fff;
    border: 1px solid #eceeef;
    border-radius: .25rem;
    position: absolute;
    top: -50px;
    left: 20px
}

.pk-tl-avatar img {
    width: 100%;
    height: 100%;
    border-radius: .25rem
}

@media (min-width:768px) {
    .pk-tl-avatar {
        top: calc(50% - 40px);
        right: -35px;
        left: auto
    }
    .pk-tl-block:nth-child(odd) .pk-tl-avatar {
        left: -35px;
        right: auto
    }
}

.pk-tl-content-text {
    background: #f7f7f9;
    min-height: 100px;
    border-radius: .25rem;
    padding: 2.5rem 1.5rem 1.5rem
}

.pk-tl-content-text p:last-child {
    margin-bottom: 0
}

@media (min-width:768px) {
    .pk-tl-content-text {
        padding: 1.5rem 3.5rem 1.5rem 1.5rem
    }
    .pk-tl-block:nth-child(odd) .pk-tl-content-text {
        padding: 1.5rem 1.5rem 1.5rem 3.5rem
    }
}

.pk-tl-content-media img {
    max-width: 100%;
    height: auto
}

Similar snippets

Bootstrap example and template. about me

about me

Bootstrap example and template. bs4 user profile cover

bs4 user profile cover

Bootstrap example and template. Instagram User Profile header

Instagram User Profile header

Bootstrap example and template. shop user profile with ticket

shop user profile with ticket

Bootstrap example and template. box colored

box colored

Bootstrap example and template. box funny

box funny

Bootstrap example and template. Profile overview and edit

Profile overview and edit

Bootstrap example and template. Team member

Team member

FAQ

How do I use this snippet?

Include Bootstrap 4.0.0-beta, 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.0.0-beta.

Bootstrap example and template. bs4 beta timeline

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 7.4K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.0.0-beta

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js'></script>

This code example is based on bootstrap 4.0.0-beta 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