Foundation CSS Menu Sticky Navigation
Foundation CSS is an Open-source front-end framework that makes it simple and quick to build stunning, responsive websites, mobile apps, and emails. September of that year saw ZURB publish it. Many companies, including Facebook, eBay, Mozilla, Adobe, and even Disney, use it. Based on the Bootstrap framework, this framework mimics SaaS. More complex, adaptable, and unique are its characteristics. The ease of use of its command-line interface makes working with module bundlers a snap. Email creation software uses HTML to produce responsive emails that operate well on mobile devices. Making completely responsive web applications is possible with Foundation for Apps.
A Menu is an amazing approach to creating a list of links that will help a user navigate throughout the website. We can set the menu to different alignments like vertical. We can use Sticky Navigation to keep the menu stuck at the top of the webpage.
Foundation CSS Menu Sticky Navigation classes:
- menu: This class is used to add a basic menu. This class is used inside a <ul> element.
Foundation CSS Menu sticky navigation attributes:
- [data-sticky-container]: This attribute is added to the container which you want to make a sticky container. This attribute doesn’t accept any value.
- [data-sticky]: This attribute is added to the container in which you want to make a sticky element. This attribute doesn’t accept any value.
<div data-sticky-container> <ul class ="menu" data-sticky> <li>...</li> <li>...</li> </ul> </div>
Example 1: In the below-given code a basic menu is made sticky using the above-given attributes.
Example 2: In the below-given code a menu with icons and an active state is made sticky using the above-given attributes.
Please Login to comment...