Possible Duplicate:
css rule to disable text selection highlighting
How to disable highlighting ( select ) text in DIV ?
<div id="hello">hello</div>
You can use the user-select property to disable text selection of an element. In web browsers, if you double-click on some text it will be selected/highlighted. This property can be used to prevent this.
To disable the text selection when the user double clicks on the HTML element, you can use the user-select property and set its value to none in CSS.
Use the user-select: none; CSS rule.
you may wanna look at How to disable text selection highlighting using CSS? it may help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With