code-8
code-8

Reputation: 58652

Display custom image as cursor

I've been trying to display a custom cursor icon on my site.

I've tried

html {
  cursor: url("https://i.imgur.com/hjMEGpb.png"), auto;
}

I don't see it's working.

What did I do wrong ?

I'm testing on the latest version of Chrome.

Upvotes: 1

Views: 2709

Answers (1)

Temani Afif
Temani Afif

Reputation: 272807

Probably related to the image size which a bit big. Use a smaller one:

enter image description here

html {
  cursor: url("https://i.sstatic.net/wu8CP.png"), auto;
}

Upvotes: 4

Related Questions