How to make radio buttons cool again

Brian Treese on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateDesign Engineering4 min

About this video

A CSS-only tutorial on fully styling HTML radio buttons: hiding the default input accessibly, building a custom control with a ::before pseudo-element, simulating the selected state with gradients, and adding transitions and keyboard support. It is aimed at web developers who want more control over form UI.

What you’ll learn

  • Hide a native radio input while keeping it accessible
  • Build a custom radio button with a ::before pseudo-element
  • Show the selected state with CSS gradients and :checked