{"id":2217,"date":"2012-10-29T15:59:35","date_gmt":"2012-10-29T15:59:35","guid":{"rendered":"http:\/\/blog.ed.gs\/?p=2217"},"modified":"2012-10-29T15:59:35","modified_gmt":"2012-10-29T15:59:35","slug":"disable-text-selection-in-css","status":"publish","type":"post","link":"https:\/\/ed.gs\/2012\/10\/29\/disable-text-selection-in-css\/","title":{"rendered":"Disable Text Selection In CSS"},"content":{"rendered":"
If you’re using text or images as buttons, sometimes clicking them multiple times will trigger a text selection of the element, distorting the visual appeal. You can use the following css on the elements class to disable text selection of the element.<\/p>\n
-webkit-touch-callout: none;\n-webkit-user-select: none;\n-khtml-user-select: none;\n-moz-user-select: none;\n-ms-user-select: none;\nuser-select: none;<\/pre>\n","protected":false},"excerpt":{"rendered":"If you’re using text or images as buttons, sometimes clicking them multiple times will trigger a text selection of the element, distorting the visual appeal. You can use the following css on the elements class to disable text selection of the element. -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;<\/p>\n","protected":false},"author":2,"featured_media":3569,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false},"categories":[18],"tags":[],"yoast_head":"\n
Disable Text Selection In CSS - E<\/title>\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\t\n