Section
Sections are similar to tabs as a way to selectively show a single panel of content at a time.
Sections Replace Accordion, Tabs, Vertical Nav & Nav Bar
Sections replace a few things that you are used to from Foundation 3. We’ve taken the accordion, the tabs and the vertical nav and combined them into this really flexible plugin that can handle all of those. The single JS file handles all the interactions, but the classes you add to the element control how it gets rendered and styled across our breakpoint.
[row]
[one_third]
Vertical Navigation
[vernavgroup][vernav title=»Section 1″][sidenav][sideitem link=»#»]link 1[/sideitem][sideitem link=»#»]link 2[/sideitem][sideitem link=»#»]link 3[/sideitem][sideitem link=»#»]link 1[/sideitem][/sidenav][/vernav][vernav title=»Section 2″][sidenav][sideitem link=»#»]link 1[/sideitem][sideitem link=»#»]link 2[/sideitem][sideitem link=»#»]link 3[/sideitem][sideitem link=»#»]link 1[/sideitem][/sidenav][/vernav][/vernavgroup]
[/one_third]
[two_third]
Horizontal Navigation
[hornavgroup][hornav title=»Section 1″][sidenav][sideitem link=»#»]link 1[/sideitem][sideitem link=»#»]link 2[/sideitem][sideitem link=»#»]link 3[/sideitem][sideitem link=»#»]link 1[/sideitem][/sidenav][/hornav][hornav title=»Section 2″][sidenav][sideitem link=»#»]link 1[/sideitem][sideitem link=»#»]link 2[/sideitem][sideitem link=»#»]link 3[/sideitem][sideitem link=»#»]link 1[/sideitem][/sidenav][/hornav][/hornavgroup]
Tabs Navigation
[tabgroup][tab title=»Section 1″]Content of section 1[/tab][tab title=»Section 2″]Content of section 2[/tab][/tabgroup]
[/two_third]
[/row]
This example will automatically switch between tabs and accordion based on the resolution of the device.
The class options:
auto
tabs
accordion
vertical-nav
horizontal-nav