24th Nov 2017, 9:52 PM
Bogdan Saliuk
Bogdan Saliuk - avatar
8 Answers
+ 8
progress { height: 15px; border: 0px none; background-color: grey; color: red; } progress::-webkit-progress-bar { background-color: grey; } progress::-webkit-progress-value { background-color: red; } progress::-moz-progress-bar { background-color: red; } taken from: http://ankitjain.info/ankit/2013/08/15/html5-progress-bar-css-firefox-chrome-animation/
24th Nov 2017, 10:11 PM
Burey
Burey - avatar
+ 6
try progress { height: 15px; border: 0px none; background-color: grey; color: red; } progress::-webkit-progress-bar { background-color: grey; } progress::-webkit-progress-value { background-color: lime; /* change this */ } progress::-moz-progress-bar { background-color: red; }
24th Nov 2017, 10:30 PM
Burey
Burey - avatar
0
it's don't work.
24th Nov 2017, 10:08 PM
Bogdan Saliuk
Bogdan Saliuk - avatar
0
more precisely, it's work wrong. Color changing, but just on value red and grey background, and doesn't matter what colours you input
24th Nov 2017, 10:12 PM
Bogdan Saliuk
Bogdan Saliuk - avatar
0
value green
24th Nov 2017, 10:16 PM
Bogdan Saliuk
Bogdan Saliuk - avatar
0
progress { height: 15px; border: 0px none; background-color: grey; color: red; } progress::-webkit-progress-bar { background-color: grey; } progress::-webkit-progress-value { background-color: red; } progress::-moz-progress-bar { background-color: red; } taken from: http://ankitjain.info/ankit/2013/08/15/html5-progress-bar-css-firefox-chrome-animation/ it works, but just if i write under progress { background-color: *color* } and doesn't matter what the color.
24th Nov 2017, 10:24 PM
Bogdan Saliuk
Bogdan Saliuk - avatar
0
Use inline style="background-color:{{yourColor}}" attribute.It just works. Edit: You're right indeed,it only changes to green.Maybe something problem on sololearn.
25th Nov 2017, 5:57 AM
Vikaash
Vikaash - avatar