CSS Variables
CSS Variables
Out of context: Reply #5
- Started
- Last post
- 8 Responses
- section_0140
well, instead of writing a hex value for a color that you are going to use many times through a style sheet, and possibly have to change you could use:
$color = "#ff0000";
or whatever naming convention you need. Unless I'm unaware of a way to use classes as variables within CSS, it would make life a bit easier.
// goes and googles a way to use classes as variables