1

Foundation CSS Menu Nested Style

 6 months ago
source link: https://www.geeksforgeeks.org/foundation-css-menu-nested-style/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Foundation CSS Menu Nested Style

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 to 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.  

Menus are the main tools for visitors to navigate throughout a website. Foundation CSS Nested Style Menu creates the nested navigation menu. The menu items are created using <ul> and <li> elements.

Foundation CSS Menu Nested Style Class:

  • nested: This class is used to create nested navigation menu. The nested navigation menu has extra padding on the element.

Syntax:

poster
poster
<ul class="menu">
  <li><a href="#">Item 1</a></li>
  <li>
    <a href="#">Item 2</a>
    <ul class="nested menu">
      <li><a href="#">1</a></li>
      <li><a href="#">2</a></li>
      . . .
    </ul>
  </li>
  <li><a href="#">Item 3</a></li>
  . . .
</ul>

Example:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Foundation CSS Menu Nested Style</title>
<!-- Compressed CSS -->
<link rel="stylesheet" href=
crossorigin="anonymous">
<!-- Compressed JavaScript -->
<script src=
crossorigin="anonymous"></script>
</head>
<body>
<h1 style="color: green;">
GeeksforGeeks
</h1>
<h3>Foundation CSS Menu Nested Style</h3>
<ul class="menu vertical">
<li><a href="#">GeeksforGeeks</a></li>
<li><a href="#">Web Technology</a>
<ul class="nested vertical menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
<li><a href="#">jQuery</a></li>
</ul>
</li>
<li><a href="#">Data Structure</a></li>
<li><a href="#">Programming</a></li>
<li><a href="#">Algorithm</a></li>
</ul>
</body>
</html>

Output:

Foundation CSS Menu Nested Style

Foundation CSS Menu Nested Style

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

“This course was packed with amazing and well-organized content! The project-based approach of this course made it even better to understand concepts faster. Also the instructor in the live classes is really good and knowledgeable.”- Tejas | Deutsche Bank

With our revamped Full Stack Development Program: master Node.js and React that enables you to create dynamic web applications.

So get ready for salary hike only with our Full Stack Development Course.

Last Updated : 30 Jan, 2022
Like Article
Save Article
Share your thoughts in the comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK