Figures
- Simple styling of a simple document
- Moving a style from one element to another
- The results of a property value with multiple keywords
- The result of equivalent style sheets
- Grouping both selectors and rules
- Using a class selector
- Using generic and specific selectors to combine styles
- Selecting elements with multiple class names
- Selecting elements based on their attributes
- Selecting elements based on attributes and their values
- Selecting elements based on portions of attribute values
- Selecting elements based on substrings within attribute values
- Selecting elements based on substrings that begin attribute values
- Selecting elements based on substrings that end attribute values
- A document tree structure
- Selecting an element based on its context
- A very specific descendant selector
- Using descendant selectors to apply different styles to the same type of element
- A document tree fragment
- Another document tree fragment
- Selecting adjacent siblings
- Selecting following siblings
- Styling the root element
- Selecting images that are only children inside links
- Selecting images that are only children inside links
- Selecting images that are the only sibling of their type
- Styling first children
- Styling last children
- Selecting first-of-type tables
- Selecting last-of-type tables
- Styling second children
- Styling every third list item
- Styling every other table row
- Combining patterns of :nth-child() and :nth-last-child()
- Selecting the even-numbered links
- Highlighting a form element that has focus
- Changing layout with dynamic pseudo-classes
- Styling enabled and disabled UI elements
- Styling checked and indeterminate UI elements
- Styling valid and invalid UI elements
- Styling a fragment identifier target
- Styling list items that don’t have a certain class
- Styling elements with a certain class that aren’t list items
- Styling table cells that aren’t in the table’s header
- The ::first-letter pseudo-element in action
- The ::first-line pseudo-element in action
- Inserting content before an element