728x90 AdSpace

Latest News
Wednesday, November 9, 2016

CSS code to disable text selection highlighting


.no-select {
    -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important; /* Chrome/Safari/Opera */
    -khtml-user-select: none !important; /* Konqueror */
    -moz-user-select: none !important; /* Firefox */
    -ms-user-select: none !important; /* Internet Explorer/Edge */
    user-select: none !important; /* Non-prefixed version, currently not supported by any browser */
}

Note: The user-select is currently supported in all browsers except Internet Explorer 9 and earlier versions.
  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: CSS code to disable text selection highlighting Rating: 5 Reviewed By: Thiruvikraman Govindarajan