I am facing an issue where I have a jpg file stored in the same folder as my styles.css, and I want to change the cursor on a webpage to this particular jpg file. Despite my efforts, it seems like the cursor is not changing as expected.
Currently, I am using the following code:
body {
cursor: url(cursor.jpg), auto;
}
Interestingly, when I try using something like cursor: move;
, it works perfectly fine. The problem only arises when attempting to set a custom cursor using the jpg file. Could it be due to the size of the image (416x416 pixels) being too large for a cursor? It doesn't seem to be a file path error because there are no errors in the console, and inspecting HTML shows that the webpage is able to retrieve the image. So why then is my cursor failing to change?