Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

css root variables

/* css variables set up */
:root {
  --main-bg-color: brown;
  --main-padding: 1rem;
}

/* use */
.element {
  background-color: var(--main-bg-color);
  padding: var(--main-padding);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: moment js get date 1 month 
Javascript :: emailjs react npm 
Javascript :: how to get element by id in node js 
Javascript :: google auth.onstatechange 
Javascript :: jquery make visible 
Javascript :: settimeout function javascript for loop 
Javascript :: javascript loop backwards through array 
Javascript :: onchange input jquery 
Javascript :: javascript initialize array 
Javascript :: javascript convert object to querystring 
Javascript :: get home dir in nodejs 
Javascript :: how to add field to object in js 
Javascript :: forming an object with reduce 
Javascript :: split 2 arrays javascript 
Javascript :: dot env react native 
Javascript :: divisible by 3 javascript 
Javascript :: js list of objects 
Javascript :: angularjs change route js 
Javascript :: poo js 
Javascript :: remove duplicates from array of objects 
Javascript :: remove duplicate elements array javascript 
Javascript :: icon button react 
Javascript :: javascript todataurl 
Javascript :: todashcase javascript 
Javascript :: stop page refresh on button click react 
Javascript :: how to convert integer to double in javascript 
Javascript :: preview upload image jquery 
Javascript :: javascript remove duplicates 
Javascript :: js json data undefined 
Javascript :: javascript tofixed no trailing zeros 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =