Open In App

Foundation CSS Menu

Improve
Improve
Like Article
Like
Save
Share
Report

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 Menu in Foundation CSS is a navigation list that contains the different components that redirect to the various linked pages in the websites or web applications.

Foundation CSS Menu Class:

  • menu: This class is used to create a navigation menu.

Syntax:

<ul class ="menu">
    <li>Content</li>
    <li>Content</li>
</ul>

Example: This is the basic example for Foundation CSS Horizontal Menu.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Foundation CSS Menu</title>
    <link rel="stylesheet" 
          href=
    <script src=
    </script>
</head>
  
<body>
    <h1 style="color: green">GeeksforGeeks</h1>
    <h4>Foundation CSS Menu</h4>
    <ul class="menu">
        <li>
          <a href="#">Placement Course</a>
          </li>
        <li>
          <a href="#">DSA</a>
          </li>
        <li>
          <a href="#">Algorithms</a>
          </li>
    </ul>
</body>
</html>


Output:

Foundation CSS Menu

Example: This is the basic example for Foundation CSS Vertical Menu.

HTML




<html>
  
<head>
    <title>Foundation CSS Vertical Menu</title>
    <link rel="stylesheet"
          href=
</head>
  
<body>
    <h2 style="color: green">GeeksforGeeks</h2>
    <h4>Foundation CSS Menu</h4>
    <ul class="menu vertical">
        <li>
          <a href="#">Home</a>
          </li>
        <li>
          <a href="#">About</a>
         </li>
        <li>
          <a href="#">Service</a>
          </li>
        <li>
          <a href="#">Contact</a>
      </li>
    </ul>
</body>
  
</html>


Output:

Foundation CSS Menu

Reference: https://get.foundation/sites/docs/menu.html#basic-menu



Last Updated : 02 Mar, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads