Saturday, October 20

CSS Custom Variables | Properties (Example Code)


Custom Variables | Properties (CSS)


Online Example (codepen)


Example Code

HTML (2018.10.20) ()



CSS (2018.10.20) ()




JS (2018.10.20) ()

 


Notes ()


  • :root
    • the root element of the HTML document
  • for global variables all define in :root
  • variable names have to start with 2 dashes
    • ie: "--"


0 comments :

Post a Comment