Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8642287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:44:12+00:00 2026-06-12T11:44:12+00:00

I know paths are supposed to be relative to the css file, but that

  • 0

I know paths are supposed to be relative to the css file, but that doesn’t seem to be the case for an image that I’m trying to use as a cursor.

The file structure is:

Content/Site.css
Content/images/butteryfly.ani
Content/images/user.png

Site.css:

.butterfly
{       
cursor: url('images/butterfly.ani'), pointer;    
}

/*this works*/
.ui-icon-user
{
    background-image: url(images/user.png) !important;
    background-position: 0 0;
}

It works if I change it to:

.butterfly
{       
cursor: url('Content/images/butterfly.ani'), pointer;    
}

Why doesn’t the relative URL work for the cursor?

Edit: Doesn’t work in Chrome, Firefox or IE9. In all browsers it displays the hand cursor instead of the custom one.

Edit2: To follow up: how do I actually get this to work on my site, as the html pages sit at different levels? Is there a way to specify a relative URL somehow in css or should I just put a copy of the cursor at the same level as each page (which sucks!)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:44:13+00:00Added an answer on June 12, 2026 at 11:44 am

    You should use .cur extension to make it work both in IE and FF.
    And in IE11 and earlier the URL to the cursor file is relative to the page not to the css file.

    cursor: url('http://example.com/Content/images/butteryfly.cur'), default;
    

    Try to avoid using two url values as it results in an unnecessary hit to the server by IE. Instead, use an absolute URL which would work fine in IE, FF, and Chrome. Opera would use the default.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that the SMS provider is not supposed to be used, but I'd
I would like to know the paths of certain files that a user is
I know ActionController::Base.view_paths gets me the load paths for the views but the only
Does anyone know a PHP RegEx to allow only relative paths, not absolute? For
I know that for regular path I can use the MAX_PATH constant to create
Could someone know where is saved path to external XML-File that contain configuration for
I really don't know how to express this question. But what I'm trying to
I am working on a script that downloads a file from Dropbox, supposed to
It might sound trivial, but I'd like to know where I am supposed put
I know that there are other questions out there targeting the same issue but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.