0

How to style progress bar using CSS

I have been trying to style my progress bar for a while and it has proved impossible for me. Tried all sort of properties but none seem to have an effect on the bar. Any help will be appreciated.

22nd Jun 2018, 7:06 PM
AYOOLUWA ONAFUWA
AYOOLUWA ONAFUWA - avatar
7 odpowiedzi
+ 4
to make your own just put a div in another div, set the parent height as 20px (or whatever) then the child div height as 100% then the width as your progress, this way you have complete control over colors, borders, effects, then all you gotta do is use JavaScript to make it work
23rd Jun 2018, 6:02 AM
MCJEH
MCJEH - avatar
+ 11
Sum Sum Guy, you can use these selectors: progress::-webkit-progress-value progress::-webkit-progress-bar https://css-tricks.com/html5-progress-element/
22nd Jun 2018, 7:59 PM
NezhnyjVampir
+ 5
There are some html tags that are soo hard wired... the great css has no effect on them.. <progress><select> are one of such tags... use something else..
22nd Jun 2018, 7:26 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
I think y'all give up too easily. Yes, there are compatibility issues, which makes it complicated. <meter></meter> might be a tad easier to implement. Styling <progress>: https://css-tricks.com/html5-progress-element/ Styling <meter>: https://css-tricks.com/html5-meter-element/ I hope this helps! :)
22nd Jun 2018, 8:04 PM
Janning⭐
Janning⭐ - avatar
+ 2
I’ve always done select inputs and progress bars with div tags and javascript. You don’t always need to go with html standards. Sometimes you need to improvise.
22nd Jun 2018, 9:35 PM
Toni Isotalo
Toni Isotalo - avatar
+ 1
thank you all, this proved to be a lil bit helpful.
22nd Jun 2018, 8:49 PM
AYOOLUWA ONAFUWA
AYOOLUWA ONAFUWA - avatar
0
does that mean there is an alternative for the progress tag?
22nd Jun 2018, 7:49 PM
AYOOLUWA ONAFUWA
AYOOLUWA ONAFUWA - avatar