Skip to content

Instantly share code, notes, and snippets.

@trumball
Created May 24, 2013 20:37
Show Gist options
  • Save trumball/5646358 to your computer and use it in GitHub Desktop.
Save trumball/5646358 to your computer and use it in GitHub Desktop.
Disable Mobile Webkit Highlights Depending on your experience working in mobile this snippet may not appear very helpful. But when accessing mobile websites in Safari and other Webkit-based engines, you’ll notice a grey box surrounds elements as you tap them. Just append these styles into your website and it should remove all native mobile brows…
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment