I have found a website where the text is select protected.
How can i make this without JavaScript. I think it is possible by using CSS.
A set of paragraph is protected with non selectable contents.
But i don't know how to do.
I have found a website where the text is select protected.
How can i make this without JavaScript. I think it is possible by using CSS.
A set of paragraph is protected with non selectable contents.
But i don't know how to do.
Give Style as
.unselectable {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
In HTML give as
<p class="unselectable">
Your Answer
Thanks for contributing an answer to Programmers Stack Exchange!
Please be sure to answer the question. Provide details and share your research!</p>
Now it 'll work.