title: bootstrap tab as tab for mobile
body: <p>I'm designing a bootstrap tab for mobile. But the problem is, while in a desktop browser, the tabs are ok, but when it changes to mobile screen size, the tabs come one under the other. It automatically adjusts due to the responsiveness. But I want it responsive yet to be in a tab form in the mobile as well.</p>
  
  <p>The html is:</p>
  
  <pre><code>&lt;section class="panel"&gt;
                  &lt;header class="panel-heading bg-light"&gt;
                    &lt;ul class="nav nav-tabs nav-justified"&gt;
                      &lt;li class="active"&gt;&lt;a href="#home" data-toggle="tab"&gt;Home&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#profile" data-toggle="tab"&gt;Profile&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;Messages&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                  &lt;/header&gt;
                  &lt;div class="panel-body"&gt;
                    &lt;div class="tab-content"&gt;
                      &lt;div class="tab-pane active" id="home"&gt;home&lt;/div&gt;
                      &lt;div class="tab-pane" id="profile"&gt;profile&lt;/div&gt;
                      &lt;div class="tab-pane" id="messages"&gt;message&lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/section&gt;
  </code></pre>
  
  <p>Here is the  fiddle at <a href="http://jsfiddle.net/LdWUV/" rel="nofollow">http://jsfiddle.net/LdWUV/</a></p>
  
  <p>How can I achieve this?</p>