I’m trying to add a CSS rule that makes the default behaviour to not allow selection of text or elements on a page. I then add a rule for specific nodes (such as paragraphs or header text) to allow text selection on them.
Unfortunately this does not work as expected and it seems impossible to override this setting on a child node.
Check this jsfiddle to see what I mean:
Any idea how I can get this to work properly?
Thanks
Edit:
To better illustrate the problem:
try “text” instead of “normal” like:
edit: for FireFox, i changed the line “-moz-user-select: none;” to “-moz-user-select: -moz-none;”