Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable highlighting ( select ) text in DIV [duplicate]

Possible Duplicate:
css rule to disable text selection highlighting

How to disable highlighting ( select ) text in DIV ?

<div id="hello">hello</div>
like image 566
faressoft Avatar asked Dec 05 '10 10:12

faressoft


People also ask

How do I turn off text selection highlighting?

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.

How do I turn off double-click highlighting?

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.

How do I stop text from being selected CSS?

Use the user-select: none; CSS rule.


1 Answers

you may wanna look at How to disable text selection highlighting using CSS? it may help.

like image 132
Toorop Avatar answered Oct 20 '22 20:10

Toorop