Styling modals just got easier!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI4 min

About this video

A short CSS tutorial showing how to style modal dialogs with the :modal pseudo-class and how the dialog element is used. It is aimed at front-end developers and designers who already know basic CSS.

What you’ll learn

  • Style a dialog element with CSS
  • Target open modals using the :modal pseudo-class
  • Tell apart the two common uses of dialog elements