I have this div element with a background image and I want to stop highlighting on the div element when double-clicking it. Is there a CSS property for this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The CSS below stops users from being able to select text. Live example: http://jsfiddle.net/hGTwu/20/
To target IE9 downwards and Opera the HTML attribute
unselectablemust be used instead: