Jump to content

disable div selection


robert_gsfame
 Share

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
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

 

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • 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.