Dealing with hover on mobile

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUIWeb Design7 min

About this video

A short CSS tutorial on using the hover media query to handle hover states on touch devices. It shows how to test hover and touch behaviour in dev tools and introduces the pointer media queries.

What you’ll learn

  • Apply the hover media query to limit hover styles to devices that support hover
  • Test hover and touch behaviour with browser dev tools
  • Choose between hover and pointer media queries for interactive styles