jilseego jilseego - 1 year ago 111
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 Source

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.


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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download