Disable text selection with css

17. aprīlis, 2020

Apply these CSS rules to get rid of text selection

Bash
-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */

Solution was found here https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting#4407335