Answers for "how do you create variables in css"

CSS
73

css set variable

:root {
  --main-bg-color: coral;
}

#div1 {
  background-color: var(--main-bg-color);
}

#div2 {
  background-color: var(--main-bg-color);
}
Posted by: Guest on December-27-2019

Code answers related to "how do you create variables in css"

Browse Popular Code Answers by Language