Open In App

Foundation CSS Kitchen Sink Breadcrumbs

Last Updated : 07 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Foundation CSS is an open-source and responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to layout stunning responsive websites, apps, and emails that appear amazing and 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. In this article, we will discuss the Kitchen Sink Switch in Foundation CSS.

Kitchen Sink is a page in Foundation CSS in which all the major components are listed with their codes. It contains all the basic templates of each component with its code. A Breadcrumb helps to see the navigation trail to the user on a website.

Foundation CSS Breadcrumb Classes:

  • breadcrumb: This class is used to represent the current page’s location within a navigational hierarchy, separated by a forward-slash(/).

Syntax:

<nav>
    <ul class="breadcrumb"> 
        <li> ... </li>
        <li class="disabled" > ... </li>
    </ul>
</nav>

Example: This example describes the Kitchen Sink Breadcrumbs in Foundation CSS.

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Kitchen Sink Breadcrumbs</title>
    <link rel="stylesheet"
          href=
          crossorigin="anonymous">
    <script src=
            crossorigin="anonymous">
    </script>
    <title>
        Foundation CSS Kitchen Sink Breadcrumbs
    </title>
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h4>Foundation CSS Kitchen Sink Breadcrumbs</h4>
    <nav aria-label="Current Position: " role="navigation">
        <ul class="breadcrumbs" 
            style="font-size: 2em;">
            <li>
                <a href="#0">Home</a>
            </li>
            <li>
                <a href="#0">Articles</a>
            </li>
            <li class="disabled">Foundation CSS</li>
            <li
                <span class="show-for-sr">Current: </span
                Kitchen Sink 
            </li>
        </ul>
    </nav>
</body>
</html>


Output:

Foundation CSS Kitchen Sink Breadcrumbs

Example: This example describes the Kitchen Sink Breadcrumbs that redirect the pages from the given page links.

HTML




<!DOCTYPE html>
<html lang="en">
  
<head>
    <title>Foundation CSS Kitchen Sink Breadcrumbs</title>
    <link rel="stylesheet"
          href=
          crossorigin="anonymous">
    <script src=
            crossorigin="anonymous">
    </script>
    <title>
        Foundation CSS Kitchen Sink Breadcrumbs
    </title>
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h2>Foundation CSS KitchenSink breadcrumbs</h2>
    <nav aria-label="You are here:" 
         role="navigation">
        <ul class="breadcrumbs" 
            style="font-size: 2em;">
            <li>
                <a href="/home.html">Home</a>
            </li>
            <li>
                <a href="#">Books</a>
            </li>
        </ul>
        <h4>Choose the topics:</h4>
        <ul>
            <li
                <a href="/programming.html">
                    Computer Programming
                </a>
            </li>
            <li
                <a href="/architecture.html">
                    Computer Architecture
                </a>
            </li>
        </ul>
    </nav>
</body>
  
</html>


Output:

Foundation CSS Kitchen Sink Breadcrumbs

Note: In the above example, you must have the “home.html“, “programming.html” and “architecture.html” pages created.

Reference: https://get.foundation/sites/docs/kitchen-sink.html



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads