alt-web logo

Tips & Tutorials for Web Designers

Wednesday, October 21, 2015

Timeline with Bootstrap and Tabbed Panels

LIVE DEMO
Timeline preview
Screenshot
Here's the Code:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Timeline</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!--Bootstrap-->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style>
.center-block { float: none }
.nav-tabs li > a { font-size: 26px }
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-10 center-block">
<h1>Timeline Demo</h1>
<p>Coded with Bootstrap &amp; Tabbed Panels</p>

<!-- Nav tabs -->
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#menu1"><span class="glyphicon glyphicon-arrow-right"></span>2001</a></li>
<li><a data-toggle="tab" href="#menu2"><span class="glyphicon glyphicon-arrow-right"></span>2004</a></li>
<li><a data-toggle="tab" href="#menu3"><span class="glyphicon glyphicon-arrow-right"></span>2007</a></li>
<li><a data-toggle="tab" href="#menu4"><span class="glyphicon glyphicon-arrow-right"></span>2010</a></li>
<li><a data-toggle="tab" href="#menu5"><span class="glyphicon glyphicon-arrow-right"></span>2015</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="menu1">
<h3>Some Event in 2001:</h3>
<div class="col-sm-6">
<img class="img-thumbnail" src="http://lorempixel.com/400/300/people/1" alt="...">
</div>
<div class="col-sm-6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.</p>
<p>Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.</p>
<p><a class="btn btn-info btn-lg"href="http://example.com">MORE INFO</a></p>
</div>
</div>
<div class="tab-pane fade" id="menu2">
<h3>Some Event in 2004:</h3>
<div class="col-sm-6">
<img class="img-thumbnail" src="http://lorempixel.com/400/300/people/2" alt="...">
</div>
<div class="col-sm-6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.</p>
<p>Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.</p>
<p><a class="btn btn-info btn-lg"href="http://example.com">MORE INFO</a></p>
</div>
</div>
<div class="tab-pane fade" id="menu3">
<h3>Some Event in 2007:</h3>
<div class="col-sm-6">
<img class="img-thumbnail" src="http://lorempixel.com/400/300/people/3" alt="...">
</div>
<div class="col-sm-6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.</p>
<p>Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.</p>
<p><a class="btn btn-info btn-lg"href="http://example.com">MORE INFO</a></p>
</div>
</div>
<div class="tab-pane fade" id="menu4">
<h3>Some Event in 2010:</h3>
<div class="col-sm-6">
<img class="img-thumbnail" src="http://lorempixel.com/400/300/people/4" alt="...">
</div>
<div class="col-sm-6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.</p>
<p>Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.</p>
<p><a class="btn btn-info btn-lg"href="http://example.com">MORE INFO</a></p>
</div>
</div>
<div class="tab-pane fade" id="menu5">
<h3>Some Event in 2015:</h3>
<div class="col-sm-6">
<img class="img-thumbnail" src="http://lorempixel.com/400/300/people/5" alt="...">
</div>
<div class="col-sm-6">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.</p>
<p>Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim.</p>
<p><a class="btn btn-info btn-lg"href="http://example.com">MORE INFO</a></p>
</div>
</div>
<!--end tabs-->
</div>
</div>
</div>
</div>
<!--Latest jQuery Core Library-->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--Bootstrap JS-->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js">
</script>
</body>
</html>


LIVE DEMO