CSS select text user-select

/** * Disable User select * * @source: https://developer.mozilla.org/en-US/docs/Web/CSS/user-select */ .unselectable { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; /* not supported without prefix */ }
Use this to prevent ugly text selection on UI elements

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.