What are parameters in CSS | SoloLearn: Learn to code for FREE!


What are parameters in CSS

9/19/2019 10:53:22 AM


1 Answer

New Answer


Hi, The CSS parameters (named var()) are custom css properties that you can declare in a particular section of style named :root and you can reuse in your css as value by adding the syntax: cssproperty: var(--yourprop); The scope is: if you declare a single variable in the :root, you can reuse it in all css. An example on this code: https://code.sololearn.com/Wr8i1oKcVdIo/?ref=app