HTML/CSS Service

Variables in CSS?

Category: CSS, CSS3 Tutorial    |    2,474 views    |    Add a Comment  |   

Definition of a variable

3.1. The @variables at-rule

CSS Variables should be defined in an @variables at-rule. An @variable at-rule is composed of the ‘@’ character followed by the ‘variables’ identifier, optional target media types (separated by commas) and a block of variable definitions. The definition of a variable must precede all style rules contained or imported in the stylesheet.

Read more…

Share/Save/Bookmark