CSS: Disable text selection

Posted on Thursday, 1 November 2012 by contact-nizam


<style type="text/css">
#content {
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
}
</style>
 
<div id="content"> Try selecting all this text. You will see that all of it is unselectable.</div>

Reference:

0 Responses to "CSS: Disable text selection":