jilseego jilseego - 5 months ago 17
CSS Question

Custom cursor image doesn't work in all IEs?

I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:

div {
cursor: url(images/zoomin.cur), auto;
}


It works fine except in IE...

Answer

Unfortunately, cursor is plain buggy in IE, at least until and including 8

In Internet Explorer for Windows up to and including version 8, if a relative URI value is specified in an external style sheet file the base URI is considered to be the URI of the document containing the element and not the URI of the style sheet in which the declaration appears.

http://reference.sitepoint.com/css/cursor

You may want be able to use a conditional comment to target IE and then feed it a modified style rule with a different url.