It is very common that everyone can easily copy texts from websites, with and the minor problem is that if anybody touches screen for a while automatically test select and options occurs -- select all copy past extra, its seems come time ugly & if you want to add some security to text that anyone don't copy than you use this also.
Now write to need little bit css!
.container{
User-select:none;
}
I hope you will enjoy this CSS Tipπ‘
Top comments (4)
I think this is good to know, but in practice it's almost always a very bad idea - it doesn't stop people from copying the text, it just makes it one step more tricky (view-source, then copy, for example).
Are there any legitimate reasons to want people not to be able to copy text they can see? Yes, but they're pretty rare.
On the other hand, there are lots of reasons people might have for copying text which are perfectly reasonable. Some examples:
User-selector: none
on a parent element on this post then I couldn't copy the code...)I understand Your Point of view
But User-selector Does not effect any link or any highlight. This property use for text ..
Your first point is valid that how to copy e-mail or products name etc because they are also written as text, we need to work on this..
Yeah I today use this property in Body
And it works,