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 Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/243274-disable-div-selection/#findComment-1249868 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.