Answers for "how bootstrap tabs work"

6

tabs bootstrap 3

<div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">...</div>
    <div role="tabpanel" class="tab-pane" id="profile">...</div>
    <div role="tabpanel" class="tab-pane" id="messages">...</div>
    <div role="tabpanel" class="tab-pane" id="settings">...</div>
  </div>

</div>
Posted by: Guest on April-20-2020
0

nav-pills class bootstrap

<div class="container">
  <h3>Default Bootstrap 3 Pills Example</h3>
  
  <!-- `nav-pills` class attribute of a `ul` HTML element below --> 
  
  <ul class="nav nav-pills">   
    <li class="active"><a href="http://www.tutorialmines.net">Home</a></li>
    <li><a href="http://www.tutorialmines.net/bootstrap-3-tutorial/">Bootstrap 3</a></li>
    <li><a href="http://www.tutorialmines.net/php-5-string-functions/">PHP 5</a></li>
    <li><a href="http://www.tutorialmines.net/responsive-web-design-tutorial/">RWD</a></li>
  </ul>
</div>
Posted by: Guest on August-29-2021

Browse Popular Code Answers by Language