Skip to content

Cross browser Unselectable text Using Css?

Last updated on February 25, 2018

In some special situations need to disable Text Selecting(copying) on the webpage. we can achieve this with JavaScript and CSS, below is the CSS trick.

body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
 }
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments