Disable text selection with CSS
Question:
How to disable text selection with CSS? Answer:
user-select: none;
Description:
You can disable text selection highlighting using the user-select
CSS property. Simply set the property value to none
and the text of the element and its sub-elements is not selectable anymore.
Reference:
CSS user-select reference
Share "How to disable text selection with CSS?"
Related snippets:
Tags:
disbale teext selection, disable text selection highlighting, text, selection, highlighting Technical term:
Disable text selection with CSS