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.
asked Aug 6, 2013 at 5:59
-
1Sharing your research helps everyone. Tell us what you've tried and why it didn’t meet your needs. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer. Also see How to Askgnat– gnat2013年08月06日 06:16:27 +00:00Commented Aug 6, 2013 at 6:16
-
1@gnat hereafter i will correct myself and will give detailed description. Thank younmkyuppie– nmkyuppie2013年08月06日 07:02:35 +00:00Commented Aug 6, 2013 at 7:02
1 Answer 1
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.
lang-css