Open In App

Foundation CSS Progress Bar Color

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 Progress bar can be used to display the completion progress of a task, by using different colors such as green for success, yellow for warning, red for alert, & many more.



Foundation CSS Progress Bar Color Classes:

Syntax:



<div class="Progress-Bar-Color-Classes progress" 
    role="progressbar">
    ...
</div>

Example: This example illustrates the Progress Bar Color in Foundation CSS.




<html>
  
<head>
    <title>Foundation CSS Progress Bar Color</title>
    <link rel="stylesheet"
          href=
    <script src=
    </script>
    <script src=
    </script>
    <script>
        $(document).ready(function() {
            $(document).foundation();
        });
    </script>
</head>
  
<body>
    <h1 style="color: green">GeeksforGeeks</h1>
    <h2>Progress Bar</h2>
    <div class="warning progress" 
         role="progressbar" 
         tabindex="0" 
         aria-valuenow="25" 
         aria-valuemin="0" 
         aria-valuetext="25 percent" 
         aria-valuemax="100">
        <div class="progress-meter" 
             style="width: 25%">
        </div>
    </div>
    <div class="alert progress">
        <div class="progress-meter" 
             style="width: 50%">
        </div>
    </div>
    <div class="success progress">
        <div class="progress-meter" 
             style="width: 75%">
        </div>
    </div>
</body>
</html>

Output:

Foundation CSS Progress Bar Color

Reference: https://get.foundation/sites/docs/progress-bar.html#colors


Article Tags :