
What's New in CSS? Variables, Scoping, New Selectors and Color Functions
Syntax - Tasty Web Development Treats
00:00
CSS Variables: A Quick Guide
The new feature is called CSS variables. You can declare a variable, it works similar to how SAS works where you declare a variable and then go ahead and use that variable in your CSS. It's the way that you declare avariable is inside of any selector that you have. So much like you'd have a property value like background red, you could just make a variable called background color,. And then you would say colon red or colon BAD 55 if it was the hex code.
Play episode from 04:50
Transcript


