css - Bootstrap horizontal scrollable tab bar -


i creating app in bootstrap 3 tab bar. dynamically adding , removing tabs. works great, though have tab bar horizontally scrollable through tabs if there many tabs fit in width of app instead of creating multiple rows or tabs.

has done or have idea how implement this?

here example:

(not working in snippet reason, here link bootply : http://www.bootply.com/orouamwsg1)

.nav-tabs {    overflow-x: auto;    overflow-y: hidden;    display: -webkit-box;    display: -moz-box;  }  .nav-tabs>li {    float: none;  }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>   <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />  <div class="container">    <div class="col-md-4">      <div class="tabbable">        <ul class="nav nav-tabs">          <li class="active"><a href="#tab1" data-toggle="tab">section 1</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 2</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 3</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 4</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 5</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 6</a>          </li>          <li><a href="#tab2" data-toggle="tab">section 7</a>          </li>        </ul>        <div class="tab-content">          <div class="tab-pane active" id="tab1">            <p>i'm in section 1.</p>          </div>          <div class="tab-pane" id="tab2">            <p>i'm in section 2.</p>          </div>        </div>      </div>    </div>  </div>


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -