Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fluid progress bars created entirely with CSS3
Branch: master

Merge pull request #7 from honzie/master

Remove extra DIV elements, browser prefixes, and break IE styles into own .CSS
latest commit b9a80cdd9a
@jsullivan authored
Failed to load latest commit information.
README.markdown OK. Now I understand markdown. I hope.
css3-progress-bar-ie.css Adding IE styles, refactoring out extra div.
css3-progress-bar.css Adding IE styles, refactoring out extra div.
example.html Adding IE styles, refactoring out extra div.


CSS3 Progress Bars

I made CSS3 progress bars for a display of data inside localized leaderboards for the new platform at G5.

They are light-weight, requiring no javascript. They work on iOS devices, they're incredibly simple to customize, and using them on your site is as easy as linking to the css file and pasting in the markup. No images are used.


  1. Include the progress bar stylesheet:

    <link rel="stylesheet" href="css3-progress-bar.css" />
  2. If you need to fully support versions of Internet Explorer prior to 9, include the IE supplemental styles after the above line. Keep in mind that the progress bars will still render well in IE6/7/8 without these styles. These styles use proprietary IE style techniques that are known to not be performant. To keep your site rendering quickly and responding well, consider not including this line and gracefully degrading in older browsers.

    <!--[if lt IE 9]>
        <link rel="stylesheet" href="css3-progress-bar-ie.css" />
  3. Paste the following syntax where you want a progress bar. The progress far will fill the width of its containing block element.

    <div class="bar_container">
        <div class="bar_mortice">
            <div class="progress" style="width: 40%;"></div>
  4. Change the progress bar's fill level with a percentage:

    <div class="progress" style="width: 52%;"></div>

See example.html for more styles and colors.

Something went wrong with that request. Please try again.