How to disable text selection highlighting using CSS? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to disable text selection highlighting using CSS?

Damian99Damian99 USAPosts: 116Member

I know it is possible to disable text selection highlighting of a web page using JavaScript. I like to know whether it is possible using CSS or CSS3. If so which one is recommended?

Tagged:

Comments

  • DavidMDavidM USAPosts: 342Member

    Following are the correct variations.

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

    More details.

Sign In or Register to comment.