to css? except using variable in inline-style and use that in css.
i want create a custom progress bar that i can pass width with html instead of creating css styles from 1% to 100%
i found solution with js. if there is any with only css let me know about it. https://stackoverflow.com/questions/1720320/how-to-dynamically-create-css-class-in-javascript-and-apply
Variable in inline style is perfectly fine
Обсуждают сегодня