It is easily done with:
-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; Alternatively:
Let's say you have a <h1 id="example">Hello, World!</h1>. You will have to remove the innerHTML of that h1, in this case Hello, World. Then you will have to go to CSS and do this:
#example::before // You can of course use **::after** as well. { content: 'Hello, World!'; // Both single-quotes and double-quotes can be used here. display: block; // To make sure it works fine in every browser. } Now it simply thinks it is a block-element, and not a text.