CSS Fundamentals¶
Cascade analogy¶
Death match between classes
The property with the most specificity emerges victorious
Pseudo-elements¶
::before
and ::after
- can't add them to replaced elements
- whose contents can't be changed
Last update:
2023-04-24