How I must use variables in css | Sololearn: Learn to code for FREE!

+6

How I must use variables in css

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

12/4/2021 4:33:58 PM

Ulug'bek Burxonov

8 Answers

New Answer

+5

I know it but I don't remember it

+6

:root { --background: red; } body { background: var(--background); }

+6

Beauty thanks

+5

+5

If you write code in scss or sass it's converted to css

+5

Jonh Doe Are you write code on scss or sass

+5

So What is :root

+1

I noticed you tagged the question with sass/scss. Do you mean css variables or sass variables?