<label> label: <progress max="100" value="10">10%</progress></label>
<label> label: <progress max="100" value="40">40%</progress></label>
<label> label: <progress max="100" value="80">80%</progress></label>
<label> label: <progress max="100" value="100">100%</progress></label>
progress[value] {
--color: blue; /* the progress color */
--background: lightgrey; /* the background color */
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
width: 200px;
margin: 0 10px;
border-radius: 10em;
background: var(--background);
}
progress[value]::-webkit-progress-bar {
border-radius: 10em;
background: var(--background);
}
progress[value]::-webkit-progress-value {
border-radius: 10em;
background: var(--color);
}
progress[value]::-moz-progress-bar {
border-radius: 10em;
background: var(--color);
}
label {
font-size: 20px;
font-weight: bold;
display: block;
margin: 20px 0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.