Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout Techniques Flexbox Layout Animating Flexbox

Zachary Caldwell
Zachary Caldwell
13,166 Points

How do we deal with :hover on mobile devices?

I'm interested to know this since it was brought up in this video, but what action reproduces the :hover state on a mobile device?

1 Answer

The :hover state is not really supported on mobile devices, so I would not rely on it when designing your site. It should be used as an extra design aspect and not necessarily for functionality. Some devices show the :hover state for a split second after clicking it, but it's mostly meant for devices that have a mouse.

This article goes in depth on the subject and might answer any other question you might have: http://www.prowebdesign.ro/how-to-deal-with-hover-on-touch-screen-devices/