Variables in CSS3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Variables in CSS3

Checkout this code, and see how to use variables in CSS3 without using any preprocessors https://code.sololearn.com/WCKnw52h2YDP/?ref=app

27th Dec 2017, 4:24 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
6 Answers
+ 5
great @Sami. but it didn't work for older device
28th Dec 2017, 2:34 AM
Amethyst Animion
Amethyst Animion - avatar
+ 2
That's one useful thing, nice, thanks :D
27th Dec 2017, 4:31 PM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
Thank you for teaching me something new.
27th Dec 2017, 4:34 PM
John Wells
John Wells - avatar
+ 2
Don't really like how bulky the variables have to be on sololearn. on codepen you can do stuff like $var="red" but doesn't work here
27th Dec 2017, 4:40 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
@Brains i think that is the syntax of sass... but here no preprocessor is used
27th Dec 2017, 4:41 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
@JFS ya i do noticed...
28th Dec 2017, 6:35 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar