I have the following CSS:
* {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
This works in every browser except for in IE, why is this? The selection of text looks really ugly because my menus are created from text and CSS... any ideas?
You can use Javascript and do:
document.onselectstart = function() { return false; }
document.onmousedown = function() { return false; }
The first one works for IE and the second one does Mozilla-based browsers.
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