Join James Williamson for an in-depth discussion in this video CSS preprocessors, part of CSS Fundamentals.
- View Offline
- As powerful as CSS is, there are gonna be times…when you want to be able to do something…that the language just won't let you do.…Let me give you a quick example.…Let's say that you used this color,…which is a burgundy, throughout your entire site,…you know complex style sheets can contain hundreds of rules.…Now, let's say that your client decides to use…this flavor of burgundy instead.…At this point, you better have a good…find and replace option in your CSS editor,…or you're going to be doing a lot of work by hand.…
Wouldn't it be easier if you could simply…declare a variable for the color at the top of your styles,…and then reference that variable throughout your code?…To change the color site-wide, you could just simply…change the color of the variable.…Well, that'd be great, but you can't…do that with CSS, at least, not yet.…Well that's where CSS preprocessors come in.…CSS preprocessors are programs created to extend…the functionality of CSS and make it easier…for authors to write their code.…They work by allowing authors to write styles…
CSS Fundamentals covers the basic concepts, terminology, and techniques you need to read and write CSS. It's for people who want a big-picture overview before taking hands-on courses. Author James Williamson explains how CSS affects text, borders, backgrounds, and images; how CSS works with HTML; and how the W3C's evolving CSS specification impacts designers. He also reviews some of the most popular CSS editors and frameworks and lists online tools and resources for further study.
- What is CSS?
- Basic selector types
- Using CSS with HTML
- How browsers render CSS differently
- Exploring CSS specifications
- Checking browser support
- Working with fonts
- Understanding the box model
- Adjusting margins and padding
- Positioning elements
- Basic CSS layout concepts
- Media types and media queries
- Working with CSS frameworks and CSS grids