Arian Faurtosh Arian Faurtosh - 4 months ago 10
HTML Question

How to make <IMG> logo not draggable

I just read over:

http://csswizardry.com/2010/10/your-logo-is-an-image-not-a-h1/

He states that I shouldn't use

<h1>
for my logo... That I should use
<img>
.

But how do you make the image not draggable using
<img>
? His site seems to use
<img>
to place the logo image, but it also isn't draggable..

Answer

Set the CSS property of the image as:-

user-drag: none; -moz-user-select: none; -webkit-user-drag: none;