#Responsive Tabbed Navigation A jQuery plug-in to turn bootstrap tabbed navigation into responsive tabbed navigation. 1. [What it does](#1-what-it-does) 2. [Dependencies](#2-dependencies) 3. [Usage](#3-usage) 4. [Credits](#4-credits) ##1. What it does [Twitter bootstrap](http://twitter.github.com/bootstrap/) is a wonderful framework for web applications, with tons of components and superb styling. One of the many components included in the framework is tabbed navigation: ![](http://f.cl.ly/items/3A3e2P1x0x0e3W2B2s3Z/large.png) Tabbed navigation looks fine on desktop-sized displays. Unfortunately, the stock framework doesn't make any accommodations for smaller screens. On a smartphone, the user experience can be confusing: ![](http://f.cl.ly/items/3A3e2P1x0x0e3W2B2s3Z/unresponsive-small.png) This plug-in modifies the standard tabbed navigation to better fit smaller screens. Instead of showing all the tabs at once, it shows only the active tab, giving users a simple way to switch to a different tab. ![](http://f.cl.ly/items/3A3e2P1x0x0e3W2B2s3Z/responsive-small.png) The responsive version does come with some compromises, however. Most obviously, users aren't able to view all the tab choices at the same time. In addition, users cannot navigate directly from one tab to any arbitrary tab; instead, they must increment through the tab options in order. Because of these issues, the responsive approach is best used when there's a natural order to the tab choices. Tabs that selected between "Hourly," "Daily,", "Weekly," "Monthly," "Quarterly," and "Yearly", for example, are excellent candidates. The obvious order in the tabs lets users immediately know if they've "gone too far" so they don't have to visit all the options. As a final note, if the user's browser does not support Javascript, the styles supplied with the plug-in fall back to behavior that still accommodates small screens: ![](http://f.cl.ly/items/3A3e2P1x0x0e3W2B2s3Z/styled-small.png) ##2. Dependencies Although the plug-in assumes tabbed navigation markup as defined by [Twitter bootstrap](http://twitter.github.com/bootstrap/components.html#navs), it shouldn't be too difficult to modify it for other tab implementations. The plug-in obviously requires [jQuery](http://jquery.com/). It has only been tested with version 1.7.2, but since it doesn't need anything very fancy or new, it most likely works fine with much older versions. ##3. Usage ### Install the plugin There are a couple of options for installing the plug-in: a quick and simple approach and a more thorough integration into a site's assets. To check out the plug-in with minimal effort, first include the sample CSS file in the page header. Then include the plug-in code after jQuery. If your site uses a more advanced work flow based on Less and Javascript concatenation, use the `responsive-tabs.less` and `responsive-tabs.js` files as appropriate for your environment. ### Markup the desired tabbed navigation If you're using the sample CSS without modification, add the `responsive` class to `tabbable` `
This is dummy content for Tabbed Section 1. …
This is dummy content for Tabbed Section 2. …
This is dummy content for Tabbed Section 3. …
This is dummy content for Tabbed Section 4. …