CSS Smart Selectors: Making CSS Work For You!

The more specific your CSS rules become, the more class attributes you need in your HTML to tell the rules which elements to modify. This brute force method is common practice, but very inefficient. CSS selectors are all about pattern-matching, an ability that is often misunderstood and certainly underused. This session shows you how to write cleverly-coded “smart selectors” that let the rules identify target elements on their own without HTML classes, greatly reducing your HTML maintenance requirements. It’s almost magic!

You will learn:

  • How dependent, independent, and descendant selectors work
  • How to use CSS combinators to add selector specificity
  • How to use pseudo-classes and pseudo-elements as filters
  • How to use attribute selectors to identify HTML elements

Tools & Technologies
Location: Date: March 28, 2019 Time: 2:00 pm - 2:45 pm photo of Dave Gash Dave Gash