The user-select property in CSS controls how the text in an element is allowed to be selected. Initial definition. Definition and Usage The :enabled selector matches every enabled element (mostly used on form elements). This property can be used to prevent this. Vinish Kapoor. An element is disabled if it can't be activated (selected, clicked on, typed into, etc.) Leave a Comment. Learn how to override the default text selection color with CSS. In other words, a stylish dropdown option selector. Default value: The use of this css code will deactivate the function from left-clicking on the text section but still can if we click the link or url on the blog. If there’s any reason to do that, like adding the source citation, let the user see a preview of the final text … Use the user-select: none; CSS rule. The :checked CSS pseudo-class selector represents any radio ( ), checkbox ( ), or option (