a { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } b { -webkit-user-select: contain; -moz-user-select: contain; -ms-user-select: element; user-select: contain; } .all { -webkit-user-select: all; -moz-user-select: all; user-select: all; }