When you click (touch) a link in Safari (or chrome or firefox) for iOS, you get a grey background behind link (only while you're holding it). Is there a way to remove this feature using CSS?
Please see the example image below:
When you click (touch) a link in Safari (or chrome or firefox) for iOS, you get a grey background behind link (only while you're holding it). Is there a way to remove this feature using CSS?
Please see the example image below:
Latest versions of iOS are ignoring RGBA colors for some reason.
To remove it, I ended up having to use the following:
-webkit-tap-highlight-color: transparent;
As documented here: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
Webkit has a specific style property for that:
-webkit-tap-highlight-color
.Copied from: http://davidwalsh.name/mobile-highlight-color—
If you want to remove the highlight completely—