Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 810 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 810 Bytes

Skeleton Tabs

Tab navigation for Skeleton. Demo

Usage

Include skeleton-tabs.css and skeleton-tabs.js in your HTML:

<link rel="stylesheet" href="skeleton-tabs.css">
<script src="skeleton-tabs.js"></script>

Set up the HTML markup for the tab navigation:

<ul class="tab-nav">
  <li>
    <a class="button active" href="#one">Tab 1</a>
  </li>
  <li>
    <a class="button" href="#two">Tab 2</a>
  </li>
  <li>
    <a class="button" href="#three">Tab 3</a>
  </li>
</ul>

And the HTML markup for tab content:

<div class="tab-content">
  <div class="tab-pane active" id="one">...</div>
  <div class="tab-pane" id="two">...</div>
  <div class="tab-pane" id="three">...</div>
</div>