Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save frankyonnetti/9700161034708f16bbda24ae307b3b14 to your computer and use it in GitHub Desktop.
Save frankyonnetti/9700161034708f16bbda24ae307b3b14 to your computer and use it in GitHub Desktop.
CSS - remove :hover on touch screen devices #css #ios
/*
* http://www.javascriptkit.com/dhtmltutors/sticky-hover-issue-solutions.shtml
* Method 3- Using CSS Media Queries Level 4 Interaction Media Features
*/
@media (hover:none),
(hover:on-demand) {
nav a:hover {
/* suppress hover effect on devices that don't support hover fully */
background: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment