I need to change the color of a progress bar (tag <progress>
of HTML5) with CSS. The standard for Google Chrome looks like this:
ButifItrystylingwithcssitlookslikethis:
How can I leave the background (the gray and white part of the progress bar above) of one color and the percentage (the blue and gray parts of it) of another color? It does not have to be striped with many things, just wanted to change the color. What I want is something like this:
followtheHTMLcode:
<progressstyle="left: -162px; position: relative; z-index: 1; height: 26px; width: 160px" id="progress" min="0" step="32" max="158" value="50" ></progress>
css:
progress {
background-color: #ffffff;
border: solid #808080 2px;
border-radius: 5px;
-moz-box-shadow: 3px 3px 3px #C0C0C0;
-webkit-box-shadow: 3px 3px 3px #C0C0C0;
box-shadow: 3px 3px 3px #C0C0C0;
padding: 3px;
width: 250px;
height: 20px;
}