Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css set variable

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

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

#div2 {
  background-color: var(--main-bg-color);
}
 
PREVIOUS NEXT
Tagged: #css #set #variable
ADD COMMENT
Topic
Name
8+8 =