I don't think you can edit a progress
tag's value
amount with CSS, but you could make your own "custom" progress bar with two div
s, like this.
.progress-bar-outer {
width: 300px;
height: 40px;
background-color: gray;
}
.progress-bar-inner {
height: 100%;
display: inline-block;
margin: 0;
float: left
}
.red {
/* You can change the `width` to change the amount of progress. */
width: 35%;
background-color: red;
}
.green {
/* You can change the `width` to change the amount of progress. */
width: 20%;
background-color: green;
}
<div class="progress-bar-outer">
<div class="progress-bar-inner red">
</div>
<!-- Multiple bars can be placed next to each other! -->
<div class="progress-bar-inner green">
</div>
</div>