Last Updated: February 25, 2016
·
544
· jlukic

Prevent Accidental Text Highlighting

Ever click a navigation menu to notice that the text inside it is accidentally highlighted because you double clicked?

No need to pull out javascript to solve this.

.menu {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}