robert_gsfame Posted July 30, 2011 Share Posted July 30, 2011 I created a div which contains another div inside and i add background for both divs the problem is when i double click on the second div, image in the first div turn to blue (SELECTED)...can i remove that blue selection?? i have tried outline:none; display:block but nothing happen how can i remove that..cause it's so annoying. thx in advance Link to comment https://forums.phpfreaks.com/topic/243274-disable-div-selection/ Share on other sites More sharing options...
AyKay47 Posted July 30, 2011 Share Posted July 30, 2011 can you show some code and maybe a picture of what you are talking about Link to comment https://forums.phpfreaks.com/topic/243274-disable-div-selection/#findComment-1249544 Share on other sites More sharing options...
cssfreakie Posted July 31, 2011 Share Posted July 31, 2011 you could add the following: .not-selectable{ -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } and for IE add unselectable="on" as attribute inside the div tag Link to comment https://forums.phpfreaks.com/topic/243274-disable-div-selection/#findComment-1249868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.