Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Bootstrap
  • Tailwind
  • Bulma
  • Foundation
  • Primer
  • Spectre
  • Onsen UI
  • Semantic UI
  • Pure CSS
  • Materialize
  • SASS
  • LESS
  • Blaze UI
  • CSS Frameworks
  • Color Picker
  • CSS
  • CSS Formatter
  • Web Technology
Open In App
Next Article:
Foundation CSS Thumbnail
Next article icon

Foundation CSS Progress Bar

Last Updated : 09 Feb, 2022
Comments
Improve
Suggest changes
Like Article
Like
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 progress bar is used to display the progress of a process. A progress bar helps us to visualize how much of the process is complete and how much is left. We can add a progress bar on a web page using predefined Foundation CSS classes. To add a progress bar using Foundation CSS, we use the "progress" class to create a progress container and the "progress-meter" class to create a progress bar.

Syntax:  

<div class="progress">      <div class="progress-meter" style="width:20%">          ...      </div>  </div>

Example: This example illustrates a basic progress bar using Foundation CSS.

HTML
<!DOCTYPE html> <html lang="en">  <head>          <!-- Compressed CSS -->     <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css"         crossorigin="anonymous">      <!-- Compressed JavaScript -->     <script src= "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/foundation.min.js"         crossorigin="anonymous"></script> </head>  <body>     <center>     <h1 style="color: green;">         GeeksforGeeks     </h1>     <strong>Foundation CSS Progress bar</strong><br/>     </center>      <div class="progress">         <div class="progress-meter" style="width: 50%"></div>     </div>     <div class="progress">         <div class="progress-meter" style="width: 70%"></div>     </div> </body>  </html> 

Output:

Labeled Progress Bar: 

The labeled progress bar is used to display the text inside the progress bar to show the task completion percentage. To add a label to the progress bar we use an <span> element with progress-meter-text class.

Syntax:

<div class="progress">      <div class="progress-meter" style="width:40%">          <span class="progress-meter-text">              ...          </span>      </div>  </div>

Example: This example illustrates a basic progress bar with labels made using Foundation CSS.

HTML
<!DOCTYPE html> <html lang="en">  <head>      <!-- Compressed CSS -->     <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css"         crossorigin="anonymous">     <!-- Compressed JavaScript -->     <script src= "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/foundation.min.js"         crossorigin="anonymous"></script> </head>  <body>     <center>       <h1 style="color:green;">           GeeksforGeeks       </h1>       <strong>Foundation CSS Progress bar</strong><br/>     </center>      <div class="progress">         <div class="progress-meter" style="width: 50%">            <span class="progress-meter-text">50%</span>         </div>     </div>     <div class="progress">         <div class="progress-meter" style="width: 70%">            <span class="progress-meter-text">70%</span>         </div>     </div>      </body> </html> 

Output:

Colored Progress Bars: We can use contextual color classes of foundation CSS to set the color of the progress bar. The default color of the progress bar is blue. Following are the five types of color classes available in Foundation CSS.

  • primary
  • secondary
  • success
  • alert
  • warning

Syntax:  

<div class="primary progress">      <div class="progress-meter" style="width:30%">          ...      </div>  </div>

Example: The following is an example showing all contextual color progress bars made using Foundation CSS.

HTML
<!DOCTYPE html> <html lang="en">  <head>         <!-- Compressed CSS -->     <link rel="stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css"         crossorigin="anonymous">      <!-- Compressed JavaScript -->     <script src= "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/foundation.min.js"         crossorigin="anonymous"></script> </head>  <body>     <center>       <h1 style="color:green;">           GeeksforGeeks       </h1>       <strong>Foundation CSS Progress bar</strong><br/>     </center>      <div class="primary progress">         <div class="progress-meter" style="width: 50%">             <span class="progress-meter-text">Primary</span>         </div>     </div>     <div class="secondary progress">         <div class="progress-meter" style="width: 70%">             <span class="progress-meter-text">Secondary</span>         </div>     </div>     <div class="success progress">         <div class="progress-meter" style="width: 80%">             <span class="progress-meter-text">Success</span>         </div>     </div>     <div class="alert progress">         <div class="progress-meter" style="width: 90%">             <span class="progress-meter-text">Alert</span>         </div>     </div>     <div class="warning progress">         <div class="progress-meter" style="width: 100%">             <span class="progress-meter-text">Warning</span>         </div>     </div>      </body> </html> 

Output:

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


Next Article
Foundation CSS Thumbnail

M

mishrapriyank17
Improve
Article Tags :
  • Web Technologies
  • CSS
  • Foundation

Similar Reads

    Foundation CSS Tutorial
    Foundation CSS is an open-source, responsive front-end framework developed by ZURB in September 2011. It’s a powerful tool that simplifies the creation of visually appealing responsive websites, apps, and emails that function seamlessly on any device. Renowned companies such as Facebook, eBay, Mozil
    6 min read
    Foundation CSS Introduction
    A Foundation is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework is
    3 min read

    Foundation Setup

    Foundation CSS Global Styles
    Foundation CSS is an open-source & responsive front-end framework built by the ZURB foundation in September 2011, which makes it really easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. The framework is built on Saas-like boot
    3 min read
    Foundation CSS Global Style Colors
    Foundation CSS is an open-source & responsive front-end framework built by the ZURB foundation in September 2011, which makes it really easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. The framework is built on Saas-like boot
    3 min read
    Foundation CSS Flexbox Mode
    Foundation CSS is an open-source and 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, M
    8 min read
    Foundation CSS JavaScript Installation & Initialization
    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,
    4 min read
    Foundation CSS Default Media Queries
    Foundation CSS is an open-source & responsive front-end framework built by the ZURB foundation in September 2011, which makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. The framework is built on SaaS-like bootstrap.
    4 min read
    Foundation CSS Setup Complete Reference
    Foundation CSS Setup includes Default Media Queries that include media features such as width, height, color, and display the content as per the specified screen resolution and Global Style Colors is the default color palette made available for use by Foundation CSS. Complete list of Foundation CSS
    2 min read

    Foundation Containers

    Foundation CSS Accordion
    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, M
    6 min read
    Foundation CSS Callout
    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, M
    2 min read
    Foundation CSS Card
    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. One such useful component which is used in modern websi
    4 min read
    Foundation CSS Dropdown
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. This framework
    4 min read
    Foundation CSS Media Object
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. It has numerou
    6 min read
    Foundation CSS Reveal
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. This framework
    3 min read
    Foundation CSS Tables
    Foundation CSS is an open-source and 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 and can be accessible to any device. It is used by many companies such as Facebook, eBay, Moz
    5 min read
    Foundation CSS Tabs
    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,
    3 min read
    Foundation CSS Responsive Accordion Tabs
    Foundation CSS is a front-end framework used for responsive websites, apps, and emails for any device. It also has many front-end templates like Bootstrap, Semantic UI, and other Front-end frameworks. It is flexible, readable and it is completely customizable. Top tech giants like Adobe, Amazon, Cis
    6 min read
    Foundation CSS Containers Complete Reference
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Foundation CSS Container contains features like creating a simple modal, nested model, title
    3 min read

    Foundation Navigation

    Foundation CSS Menu
    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,
    2 min read
    Foundation CSS Dropdown Menu
    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,
    3 min read
    Foundation CSS Drilldown Menu
    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, M
    3 min read
    Foundation CSS Accordion Menu
    Foundation CSS Accordion Menu is used to convert the basic vertical menu into an expandable accordion menu. To convert the menu into an accordion menu the data-accordion-menu attribute is used. In this article, we will discuss Foundation CSS Accordion Menu. Foundation CSS Accordion Menu Class:accord
    2 min read
    Foundation CSS Top Bar
    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, Mo
    4 min read
    Foundation CSS Responsive Navigation
    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,
    4 min read
    Foundation CSS Magellan
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework
    4 min read
    Foundation CSS Pagination
    Foundation CSS is the frontend framework of CSS that is used to build responsive websites, apps, and emails that work perfectly on any device. It is written using HTML, CSS, and Javascript and is used by many famous companies like Amazon, Facebook, eBay, etc. It uses packages like Grunt and Libsass
    3 min read
    Foundation CSS Breadcrumbs
    Foundation CSS is an open-source & 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 & can be accessible to any device. In this article, we will discuss the Breadcrumb com
    2 min read
    Foundation CSS Navigation Complete Reference
    Foundation CSS Navigation is mostly used for the different behavior of cursor navigation on every element. For ex. Foundation CSS Magellan is used to jump to the given target when the link is clicked. It is used when we want to jump to some specific section directly without scrolling down the webpag
    3 min read

    Foundation Typography

    Foundation CSS Base Typography
    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,
    4 min read
    Foundation CSS Typography Helpers
    Foundation CSS is one of the most popular front-end frameworks used by developers to design the website. It has several useful components to make the website look much more professional and user-friendly. One such component is the Typography helper. In every website, typography is an essential thing
    5 min read
    Foundation CSS Typography Complete Reference
    Foundation CSS Typography facilitates the clean, simple default style, with attractive styling to the basic typographical elements, that enhance the readability. It can be defined for the headings, paragraphs, lists, other inline components, etc, that helps to create an appealing style for the eleme
    2 min read
    Foundation CSS General Complete Reference
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Foundation CSS General use to manage general things like form label Positioning, and upload
    2 min read
    Foundation CSS Kitchen Sink Complete Reference
    Foundation CSS Kitchen Sink has the foundation elements to work well in our websites and applications. The Kitchen Sink Grid is used to make responsive layout designs both for web apps as well as mobile apps. Complete list of Foundation CSS Kitchen Sink are below: Foundation CSS Kitchen Sink Foundat
    2 min read

    Foundation Controls

    Foundation CSS Button Group
    Foundation CSS is an open-source and 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, M
    5 min read
    Foundation CSS Close Button
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. This framework
    3 min read
    Foundation CSS Slider
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework
    3 min read
    Foundation CSS Switch
    Foundation CSS is an open-source and 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 and can be accessible to any device. It is used by many companies such as Facebook, eBay, Moz
    5 min read
    Foundation CSS Controls Complete Reference
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Foundation CSS Controls use to create different types of switches, buttons, sliders, and tra
    2 min read

    Foundation Media

    Foundation CSS Badge
    Foundation CSS is an open-source & 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 & can be accessible to any device. It is utilized by many groups including Facebook, e
    2 min read
    Foundation CSS Responsive Embed
    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, Mo
    2 min read
    Foundation CSS Label
    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,
    2 min read
    Foundation CSS Orbit
    Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. The framework
    4 min read
    Foundation CSS Progress Bar
    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,
    3 min read
    Foundation CSS Thumbnail
    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,
    2 min read
    Foundation CSS Tooltip
    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, M
    6 min read
    Foundation CSS Media Complete Reference
    Foundation CSS Media contains lots of features to make pretty pages and focus on little things like a tooltip, badge coloring, badge icons, label icons, etc. to make a more attractive page. Complete list Foundation CSS Media are listed below: Foundation CSS Badge Foundation CSS Badge ColoringFoundat
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences