The Selection Keeper
Hello my friends!
How to prevent your rogue visitor from copying your beautiful and wonderful article?
via GIPHY
Using the "user-select" attribute in your text!
Use:
user-select: none;
Try to select now, you're naughty!
Ok, what if you want to make the selection easier for him? If your text really serves to be copied.
You can also use this! Just change the value to "all".
Use:
user-select: all;
Now you can copy all text with just one click.
If you want to leave the default, that is, the common selectable.
Use:
user-select: text;
Result:
Test yourself: .selectMe { user-select: all; } .dontSelectMe { user-select: none; } .selectManual { user-select: text; }
You will not be able to select my fiambre!
I'm kidding, you can select my fiambre.
Normal FIAMBRE!
Protection!











