Kevin Powell and Adam Argyle walk through 23 CSS features, from focus-visible and focus-within to aspect-ratio, scroll-snap and inset, with a linked CodePen demo for each. It suits front-end builders who want to use modern CSS in interfaces.
What you’ll learn
✓Apply focus-visible and focus-within to keyboard-friendly focus states
✓Control element sizing with aspect-ratio, object-fit and fit-content()
✓Build scroll behaviour with scroll-snap, scroll-padding and scroll-margin