1

I can I prevent text from being selectable and making the background blue? The blue background caused by it is the main issue, but preventing the text from being selected can be done if it removes the blue background.

Example: This is an example from the internet

steve
  • 153
  • 1
  • 10
  • Consider changing the selection color instead. It's often useful to be able to select and copy text. To perform a web search on a term you use, for instance. – Marvo Jun 11 '15 at 22:12

1 Answers1

2

You need to use user-select: none;. For full support use:

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

https://jsfiddle.net/7mfbk1o8/

Austin Collins
  • 439
  • 3
  • 13