"Round-tab-control v2"
Bootstrap 3.3.0 Snippet by progjonner

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="fg-round-tab"> <div class="fg-round-tab-inner"> <div class="connecting-line"></div> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Løp 1"> <span class="round-tab dirt"> <div>1</div> <!--<i class="glyphicon glyphicon-folder-open"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Løp 2"> <span class="round-tab grass"> <div>2</div> <!--<i class="glyphicon glyphicon-pencil"></i>--> </span> </a> </li> <li role="presentation"> <a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Løp 3"> <span class="round-tab dirt"> <div>3</div> <!--<i class="glyphicon glyphicon-picture"></i>--> </span> </a> </li> </ul> </div> <form role="form"> <div class="tab-content"> <div class="tab-pane active" role="tabpanel" id="step1"> <h3>Step 1</h3> <p>This is step 1</p> </div> <div class="tab-pane" role="tabpanel" id="step2"> <h3>Step 2</h3> <p>This is step 2</p> </div> <div class="tab-pane" role="tabpanel" id="step3"> <h3>Step 3</h3> <p>This is step 3</p> </div> <div class="clearfix"></div> </div> </form> </div> </div> </div>
.fg-round-tab { margin: 20px auto; background: #fff; } .fg-round-tab .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: #e0e0e0; } .fg-round-tab > div.fg-round-tab-inner { position: relative; } .connecting-line { height: 1px; background: #e0e0e0; position: absolute; width: 85%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; } span.round-tab { width: 50px; height: 50px; line-height: 45px; display: inline-block; border-radius: 100px; color: #555555; background: #fff; border: 3px solid #e0e0e0; z-index: 2; position: absolute; left: 1; text-align: center; font-size: 32px; } span.round-tab.grass { background-image: url('http://cdn.tripwiremagazine.com/wp-content/uploads/2011/11/image792.png'); } span.round-tab.dirt { background-image: url('http://lorempixel.com/150/150/nature/2'); } .fg-round-tab li.active span.round-tab { background: #fff; border: 4px solid #5bc0de; transition: 0.15s ease-in-out; } .fg-round-tab li.active span.round-tab.grass { background-image: url('http://cdn.tripwiremagazine.com/wp-content/uploads/2011/11/image792.png'); } .fg-round-tab li.active span.round-tab.dirt { background-image: url('http://lorempixel.com/150/150/nature/2'); } span.round-tab:hover { color: #333; border: 4px solid #555555; } .fg-round-tab .nav-tabs > li { width: 20%; } .fg-round-tab li:after { content: " "; position: absolute; left: 45%; opacity: 0; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; transition: 0.1s ease-in-out; } .fg-round-tab li.active:after { content: " "; position: absolute; left: 45%; opacity: 0; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; } .fg-round-tab .nav-tabs > li a { width: 50px; height: 50px; margin: 20px auto; border-radius: 100%; padding: 0; } .fg-round-tab .nav-tabs > li a:hover { background: transparent; } .fg-round-tab .tab-pane { position: relative; padding-top: 50px; } .fg-round-tab h3 { margin-top: 0; } @media( max-width : 585px ) { .fg-round-tab { width: 90%; height: auto !important; } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } .fg-round-tab .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } .fg-round-tab li.active:after { content: " "; position: absolute; left: 35%; } }
$(document).ready(function () { //Initialize tooltips $('.nav-tabs > li a[title]').tooltip(); var numberOfRoundTabs = $('.round-tab').length if (numberOfRoundTabs > 0) { var widthForEachTab = 100 / numberOfRoundTabs; $(".fg-round-tab .nav-tabs > li").css({"width": widthForEachTab+'%'}); if (numberOfRoundTabs < 5){ $(".connecting-line").css({"width": '70%'}); } else if (numberOfRoundTabs < 9) $(".connecting-line").css({"width": '85%'}); else $(".connecting-line").css({"width": '90%'}); } });

Related: See More


Questions / Comments: