One line of CSS is all you need to make text unselectable
All you need to do is add this line of CSS:user-select: none;
And you’re done :)
If you want to make entire page unselectable you can use the code below:
And you will get the page looking like this:
And that’s all there is to making text unselectable in CSS.
Until next time,
Will
- Senior Developer & SEO Algo Specialist
Also creator of:
- Color Hair Color
- Color Hair Colors
- Colors Hair Color
- Colors Hair Colors
- Dye Hair Dye
- Also find hair color in the news.