3 useful CSS hacks

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI9 min

About this video

Kevin Powell walks through three unconventional CSS techniques: using a large border-radius value to create pill shapes, extending shadows to full screen, and breaking an element out of its container. It suits people who already write CSS and want practical workarounds.

What you’ll learn

  • Create pill-shaped elements with border-radius set to 100vmax
  • Extend a box shadow across the full screen
  • Break an element out of its parent container with CSS