Skip to content

Instantly share code, notes, and snippets.

@magicznyleszek
magicznyleszek / css-selectors.md
Last active October 14, 2026 21:16
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {