building website, creating a website, CSS, google web designer, internet design, Learn, Typography, web design, web design company, web designer, web page design, website builder, website design
Quick Tip: How to Disable Text Selection Highlighting in CSS
There are two main CSS properties that control text selection highlighting: user-select and -webkit-user-select. These properties are used to specify whether or not users are able to select text on the web page.
UNLIMITED DOWNLOADS: Email, admin, landing page & website templates
Starting at only $16.50 per month!
DOWNLOAD NOW
To disable text selection highlighting in CSS, you can set the value of the user-select property to none:
body {
-webkit-user-select: none; /* for Safari */
-moz-user-select: none; /* for Firefox */
-ms-user-select: none; /* for Internet Explorer */
user-select: none; /* for modern browsers */
}
In this example, the user-select property is applied to the body element, which means that text selection...


