How to style progress bar? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to style progress bar?

I don't success choose the color and other things... https://code.sololearn.com/Wd6bflZuHmMt/?ref=app Thank...

11th Jul 2019, 5:06 PM
arieh
2 Answers
+ 13
You need to use CSS selectors for customizing progress element: /*you are able to change height, width, border-radius, margin attribute👇*/ progress { width:200px; border-radius:2px; } /*the main progress section👇 */ ::-webkit-progress-bar{ background-color:#f00; } /*progress bar value, which is by default in light-blue👇*/ ::-webkit-progress-value{ background-color:#00f; } If you are using Mozilla Firefox, use -moz instead of-webkit EDIT :: Made a little code about it😁 https://code.sololearn.com/WJ35YlYRD6wk/?ref=app
11th Jul 2019, 6:03 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 2
Thank you very much!
11th Jul 2019, 6:55 PM
arieh