2
I need to change the color of a Progress bar (tag <progress>
HTML5) with CSS. The default of Google Chrome is like this:
But if I try to style with css gets like this:
How can I leave the background (the grey and white part of the bar above) of one color and the percentage (the blue and gray parts of them) of another color? It doesn’t need to be striped with many things, just wanted to change the color. What I want is more or less like this:
follows the HTML code:
<progress style="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;
}
Hello, you can put the ajax script ?
– Edilson
Samir without seeing your code is difficult to help. Put the code here pf.
– Sergio
Actually it is a simple pure javascript, in which I will do as a voting system with the bar, the script does not interfere anything.
– Samir Braga
Okay, I’ll edit.
– Samir Braga
Experiment border: 2px Solid #color; instead of that expression there.
– Edilson
The aim is the bottom of that right div ? Puts it with green background file ?
– Edilson
Hi Samir. Instead of entering the "solved" in the question, mark the correct answer by clicking on the "tick" symbol that is close to the answer score. Could be your own answer.
– bfavaretto