How I must use variables in css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

How I must use variables in css

Hello everyone help me to use variables in css as senior programmers

4th Dec 2021, 4:33 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
10 Answers
+ 8
I know it but I don't remember it
4th Dec 2021, 4:46 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 9
Beauty thanks
4th Dec 2021, 4:45 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 8
:root { --background: red; } body { background: var(--background); }
4th Dec 2021, 4:45 PM
Pariket Thakur
Pariket Thakur - avatar
+ 8
So
4th Dec 2021, 4:45 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 8
If you write code in scss or sass it's converted to css
4th Dec 2021, 4:51 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 8
Jonh Doe Are you write code on scss or sass
4th Dec 2021, 4:51 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 7
So What is :root
4th Dec 2021, 6:16 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 4
Pariket Thakur 👍🏻👍🏻👍🏻👍🏻😄
12th May 2022, 6:30 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 4
John Doe 👍🏻👍🏻👍🏻👍🏻😄
12th May 2022, 6:31 PM
Ulug'bek Burxonov
Ulug'bek Burxonov - avatar
+ 2
I noticed you tagged the question with sass/scss. Do you mean css variables or sass variables?
4th Dec 2021, 4:49 PM
John Doe