

This can really improve user experience, and lately I've been wondering how it works. So JSX doesn't require anything special other than a valid cursor image file and a fallback built-in cursor.Have you ever visited a website and been totally blown away by its amazing features? One of them might be a cool mouse cursor that is different from the regular arrow or pointer cursors you are used to. cur file I found online somewhere which does work with IE as documented. cur file for IE still as it only supports the. I will have to find some better tool to make a proper. png format instead with a fallback value as Josh suggested, I can make custom cursors work on Chrome and Firefox. cur format and I now believe it returns corrupt or at least inadequate. The basic problem is that I used an online image converter to convert an image to. Sorry if anyone wasted much time on this, but for the record: There were two things wrong, and Josh pointed one of them out. I know that Bootstrap adds lots of styles but I wouldn't think they would "win" in this case, would they? I also realize that I hadn't mentioned before that I am using React-Bootstrap components for my interface. Where the gets my special cursor and the "container" is where my React components are rendered.

I agree it must be a syntax problem, but what is the correct syntax for cursor: url(file) in JSX? That is what I'm trying to figure out. Yes, a plain HTML element gets the custom cursor.

(StackOverflow seems not to approve of the continued comment thread so let me address Josh's latest point as an edit instead.) I know must be doing something fundamentally wrong. So I believe the server is set up properly. Elsewhere I am successfully getting static images from the same location How can I specify a custom mouse cursor using a JSX inline style?īut I cannot seem to get anything along the lines of
