![]() |
VOOZH | about |
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so itβs easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.
A Top bar creates a navigational style and acts as a visual wrapper for the menu component, it is not a menu in itself rather the styling we may want to use to create the navigational elements in a simple and quick manner. It provides an option to make our menu component and gives us a way to split content left and right. The Top Bar Advanced Layout is similar to Foundation CSS Top Bar, with the only difference is that in the case of advanced layout, we set up a responsive menu with a toggle click trigger on mobile. The title bar can be visible on small screens, by default, along with hiding the menu. The menu will always be visible, but the title bar will disappear for the medium breakpoint. The data-hide-for attribute can be used to change the breakpoint.
Foundation CSS Top Bar Advanced Layout Class:
Syntax:
<div class="title-bar"> <div class="title-bar-title">...</div> </div> <div class="top-bar"> <div class="top-bar-left"> <ul> <li>..</li> .... </ul> </div> <div class="top-bar-right"> <ul> <li>..</li> .... </ul> </div> </div>
Note:
Example 1: This is a basic example illustrating the Top Bar Advanced Layout using Foundation CSS on a normal-sized screen.
Output:
Example 2: This is a basic example illustrating the Top Bar Advanced Layout using Foundation CSS on a small-sized screen.
Output:
Reference: https://get.foundation/sites/docs/top-bar.html#advanced-layout