Howdy, Stranger!

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


How to disable text selection highlighting using CSS?

Damian99Damian99 USAMember Posts: 116

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?



  • DavidMDavidM USAMember Posts: 342

    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.