Alaa Alweish
Alaa Alweish

Reputation: 9084

how to cancel the drag and drop selection

Try to click in any empty area and drop, this will cause a blue background selection for the page elements like text and images,

To see this behavior clearly, click ctrl+A now.

I have a black theme in a website and some controls requires drag and drop, many visitors drag empty areas by mistake and drop which will cause the unsuitable default elements selection, is there any way to prevent this selection?.

Upvotes: 0

Views: 179

Answers (1)

thinklinux
thinklinux

Reputation: 1377

How to disable text selection highlighting using CSS?

This website has a container div.. use your developer toolkit and assign the css rules that I gave you in the post above. You will not be able to select anything.

Upvotes: 1

Related Questions