How to disable text selection highlighting using CSS?

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?

Comments

  • 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.

Howdy, Stranger!

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

Categories

In this Discussion