![]() |
VOOZH | about |
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:
Foundation CSS Menu sticky navigation attributes:
Syntax:
<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.
Output:
Example 2: In the below-given code a menu with icons and an active state is made sticky using the above-given attributes.
Output:
References: https://get.foundation/sites/docs/sticky.html#sticky-navigation