How to disable default text selection highlighting in CSS
In Websites, When we hover over any text element, it shows Text Selection ( I ) by default.
To disable this default text selection, Use this in CSS (style.css)
* {
user-select: none;
}
What use-select:none does
The user-select
property specifies whether the text of an element can be selected.
In web browsers, if you double-click on some text it will be selected/highlighted. This property can be used to prevent this.
more info: https://www.w3schools.com/cssref/css3_pr_user-select.asp