Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way for mouse to completely ignore an html element? [duplicate]

Tags:

html

css

Possible Duplicate:
css rule to disable text selection highlighting

On my homepage i have a script, which shows a clock at the top of my homepage. I dont like the fact that i can choose this clock with my mouse, see the picture.

So i want to know if there is a way to completely prevent an html element from being selected by the mouse.

like image 919
71GA Avatar asked Jan 01 '12 00:01

71GA


1 Answers

CSS can do that.

-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
like image 155
Tom van der Woerdt Avatar answered Nov 11 '22 19:11

Tom van der Woerdt