5

Is it possible to replace the cursor icon apart from these:

http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor

with my custom image that I designed in Photoshop? I know this is possible because I have seen some websites with cursor having custom image. Question is: How do I do it and whether it is standard approach? Can I be sure that it works across all browsers?

1

3 Answers 3

8

Yes, just do...

cursor: url(path/to/image.png);

jsFiddle.

Sign up to request clarification or add additional context in comments.

3 Comments

Cool! Didn't know the answer is so simple :). This isn't mentioned anywhere on w3schools.
Why did you change to image.cur? Can I not specify any png image or so?
@Jack I had a feeling maybe only cur would work (maybe older IE only supported it). But I tested it and jpg worked so I don't see any reason why a png wouldn't.
2

Try this: cursor: url(image.png);

Look paragraph 'Property Values': http://www.w3schools.com/cssref/pr_class_cursor.asp

Comments

1

Yes it's. when i have finished your cursor image, just upload it on a host website (there are many on the web) then use the following css property to use it. Supposing you want to use it on images, just do :

img  {
   cursor: url(path to your hosted cursor image) ;
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.