Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android browser GREEN border on click

Tags:

android

I want to develop a web application using HTML, CSS and Javascript one thing that is really annoying is that any link or button etc when clicked inside the Android browser gets highlighted with a green border.

To demonstrate what I mean I have included a link to a page that contains a basic game written in CSS

http://marbles2.com/app/

Is there any way that you are aware of to disable the click green border?

Cheers

Paul

like image 639
Paul Avatar asked Apr 28 '10 10:04

Paul


2 Answers

In your CSS stylesheet (the one in your web application), add this:

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);  
}
like image 143
Legend Avatar answered Oct 20 '22 19:10

Legend


Try this in your style:

style="-webkit-tap-highlight-color:rgba(0, 0, 0, 0);"

Hope this helps.

like image 6
omt66 Avatar answered Oct 20 '22 18:10

omt66