Disable hover state for touch devices

Discussion in 'Web Design' started by robertnorgren, Feb 26, 2017.

to remove all ads.
  1. robertnorgren

    robertnorgren New Member

    Hi all!

    I've been working a little on my portfolio site http://www.robertnorgren.com/

    Is there a media query to target all touch devices and disable the hover effect when tapped? Currently, if you scroll down the site, the thumbnails gets the hover state even though the intention is not to tap them.

    Any ideas? Much appreciated.
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Have you tried setting the :hover pseudo class in your style sheet?

Share This Page