Skip to content
UPEEC

CSS Selectors

Patterns that choose which elements a rule styles: type (`p`), class (`.card`), id (`#main`), universal (`*`), groups (`h1, h2`).

Beginner
Comments 0
.card { padding: 1rem; }
nav a { color: #1f2731; }

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.