Last active
November 7, 2016 10:15
-
-
Save archondigital/11b691ddcdc705a557a82799716c8cf1 to your computer and use it in GitHub Desktop.
Sticky top bar on Foundation 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="siteContainer"> | |
<div id="siteNavStickyContainer" data-sticky-container> | |
<div id="siteNavStickyWrap" class="sticky" data-sticky data-sticky-on="small" data-anchor="siteContainer" data-margin-top="0"> | |
<div id="siteNavToggler" class="title-bar" data-responsive-toggle="siteNav" data-hide-for="medium"> | |
<!-- // your title-bar / toggler code --> | |
</div> | |
<div id="siteNav" class="top-bar"> | |
<!-- // your top-bar code --> | |
</div> | |
</div> | |
</div> | |
<div id="pageContent"> | |
<!-- // your inner-page code --> | |
</div> | |
</div> | |
<style> | |
#siteNavStickyWrap { width: 100%; } | |
</style> | |
<!-- // taken from http://foundation.zurb.com/forum/posts/36690-how-to-create-a-sticky-top-bar-on-foundation-6 --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from http://foundation.zurb.com/forum/posts/36690-how-to-create-a-sticky-top-bar-on-foundation-6