Disabling User text selection with css

Profile picture for user Phil Frilling
By Phil Frilling, 9 July, 2012
Today, while working on an interactive kiosk, I needed to disable the text selection highlighting. After a few searches I discovered this was possible using CSS. The code is: *{ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } The above will remove the highlighting from selected text, but will not prevent text selections.