But let's suppose that you want to control the highlighting. And you don't like Apple's light gray color. Maybe you want to do some super-cool highlight routine controlled by a Javascript routine, or you want to do things the same way but you want the color to be blue or something. How do you:
- Change the highlight color, or...
- Get rid of Safari automatically highlighting your tab all-together?
-webkit-tap-highlight-color:
I'm a control-freak when it comes to programming so when I saw this I was like really happy! If you use the rgb() function with the fourth parameter, you can set the opacity. Setting it to zero hides the highlighting.
To see Apple's documentation on this CSS tag with examples click here.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.