19

CSS Variables

As you start to build more complex websites, your style sheets will also grow in complexity. Luckily, there are ways to manage complex CSS and get it under control.

In Chapter 20, you will be introduced to CSS preprocessors, which are essentially programming languages that are mostly CSS with added functionality. But if you’re not yet ready to dive into something like that, CSS natively supports variables, which will go a long way toward taming your CSS.

What Are Variables?

So far, as you’ve ...

Get HTML and CSS: Visual QuickStart Guide, 9th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.