Jump to content

disable div selection


robert_gsfame

Recommended Posts

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

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.