Hacker News new | ask | show | jobs
by jeshin 1427 days ago
TIL about user-select:none;

That's useful, I hate copying code snippets alongside line numbers and other weirdness

2 comments

We use it throughout our UI in all interactive elements. It's super annoying when, say, a button or a navigation element gets accidentally selected for no reason.
It's great... Until people start abusing it as an ineffective copy protection mechanism.
people can already do that with javascript anyway