Skip to content

CSS code snippet – How to remove text highlight on double click?

/**HTML**/
<h1 class="element">The Element</h1>

/**CSS**/
.element {
	user-select: none;
}
See also  CSS code snippet - How to set text to middle in div?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.