Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

variables css

:root {
    --main-bg-color: brown;
  }
  
.uno {
    color: white;
    background-color: var(--main-bg-color);
    margin: 10px;
    width: 50px;
    height: 50px;
    display: inline-block;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #variables #css
ADD COMMENT
Topic
Name
4+2 =