Is there any way to apply this to a div?
+3
A:
Are you writing for iPhone/Smartphone websites? If so, then yes. But you'll probably only see the results on your phone/simulator. I think that this element can only be used on links or javascript elements. The div would have to be affected by some kind of scripting, or be a link.
<!DOCTYPE HTML>
<html>
<head>
<title>Highlighting Elements</title>
<style type="text/css">
.borderImage
{
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
</style>
</head>
<body>
<div class="borderImage">
<a href="#">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum non felis risus, tristique luctus lacus. Vestibulum non aliquam arcu. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent eleifend augue a ligula ornare quis lacinia risus ullamcorper.
</a>
</div>
</body>
</html>
tahdhaze09
2009-12-29 16:48:19
i already knew this :) perhaps some code, or a link to?
tarnfeld
2009-12-29 17:41:34
O frabjous day! Callooh! Callay! I've been searching for a way to disable that cursed orange highlight. And there it is. Thank you!
Matt Rogish
2010-09-28 19:41:43
I'm glad you found this useful!
tahdhaze09
2010-10-07 19:09:56