CSS Tricks Almanac

Selectors and Properties

Selectors are patterns used to select elements in the DOM. There are different types of selectors. Some are simple, such as type, class, and ID selectors. Some are more complex and defined such as attribute and pseudo-classes, and combinators. CSS properties style elements through their values. Properties are used to control and set the value how you want it to behave.

2 Selectors

Learn more about Attribute

Learn more about :first-child

2 Properties

Learn more about align-item

Learn more about padding

Summary

The list of selectors and properties is pretty vast. Which is great because this opens up many, many options for how we can manipulate and style our content and the behaviours of our web pages.