Disable Blue Highlight when Touch/Press object with Cursor:Pointer

remove blue highlight css
webkit-tap-highlight-color alternative
remove the blue background when onclick in css
remove blue border on click
css remove highlight on click
webkit blue highlight
remove blue overlay css
remove gray highlight when tapping links in mobile safari

There is a blue highlight that appears whenever a Div that has the cursor:pointer property applied is touched in Chrome. How can we get rid of it?

I have tried the following:

-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

But they do not effect the blue highlighting on press of a cursor.


-webkit-tap-highlight-color:  rgba(255, 255, 255, 0); 

Takes care of the problem, as it sets the highlight color transparent.

Source: http://samcroft.co.uk/2012/alternative-to-webkit-tap-highlight-color-in-phonegap-apps/

how to remove blue highlight when tapping links in mobile, in mobile, when tapping linked image or icon, blue highlight box is appear around image or icon for a moment. i want remove this highlight or  6 Disable Blue Highlight when Touch/Press object with Cursor:Pointer Sep 30 '19 3 How To Remove Outline Border From Input Button Dec 23 '19 1 Bootstrap 4.1 floating labels Oct 8 '18


As far as I have known,Vlad K's answer could cause problems in some android devices.Better solution:

-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;

-webkit-tap-highlight-color, There is a blue highlight that appears whenever a Div that has the cursor:pointer property applied is touched in Chrome. How can we get rid of it? I have tried the  73 Disable Blue Highlight when Touch/Press object with Cursor:Pointer 16 AWSLogs Resource Limit Exceeded - serverless `cloudwatchLog` event 11 Materials with solid volume greater than liquid volume


Simply add this to your stylesheet and simply add the class="no_highlights" attribute to the element you wish to apply this class to.

no_highlights{
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

or you can do this globally for all the elements by removing class name and doing this.

button,
textarea,
input,
select,
a{
 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
 -webkit-tap-highlight-color: transparent;
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
  user-select: none;

}

Thanks :)

Anyway to prevent the Blue highlighting of elements in Chrome , webkit-tap-highlight-color is a non-standard CSS property that sets the color of the highlight that appears over a link while it's being tapped. 74 Disable Blue Highlight when Touch/Press object with Cursor:Pointer 47 Mouse cursor invisible after 15.04 update 21 How to install brackets.io from the command line?


According to the docs you can simply do this:

-webkit-tap-highlight-color: transparent; /* for removing the highlight */

It works for me on Chrome 68 for Android and Chrome 80 on Windows.

remove highlighter from chrome cursor, There is a blue highlight that appears whenever a Div that has the cursor:pointer property applied is touched in Chrome. How can we get rid of it? I have tried the  74 Disable Blue Highlight when Touch/Press object with Cursor:Pointer 47 Mouse cursor invisible after 15.04 update 21 How to install brackets.io from the command line?


CSS user-select property, To remove the highlighting completely, you can set the value to transparent: I found that Chrome was adding the blue highlight via the outline style. But, sometimes, even with user-select and touch-callout turned off, cursor: pointer; may cause select the L with the mouse (in the fiddle) and after that you press the down  75 Disable Blue Highlight when Touch/Press object with Cursor:Pointer 47 Mouse cursor invisible after 15.04 update 21 How to install brackets.io from the command line?


Removing The Dotted Outline, Apr 11, 2019 - I suggest doing a Chrome browser reset (this will only disable all your extensions -- it won't remove Chrome OS / Chromebook – Highlighting the mouse pointer . Disable Blue Highlight when Touch/Press object with Cursor . Ulad Kasach. Software Engineer, Full Stack Web Developer 107 Disable Blue Highlight when Touch/Press object with Cursor:Pointer Sep 6 '14. 75 Disable Blue


User Ulad Kasach, In web browsers, if you double-click on some text it will be selected/highlighted. This property can be used to prevent this. Default value: auto. Inherited: no. 73 Disable Blue Highlight when Touch/Press object with Cursor:Pointer 47 Mouse cursor invisible after 15.04 update 21 How to install brackets.io from the command line?