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 8711643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:55:48+00:00 2026-06-13T04:55:48+00:00

i have a weird problem i am trying to load an spirte image and

  • 0

i have a weird problem i am trying to load an spirte image and get the following error:

“Failed to load resource: the server responded with a status of 404 (Not Found)”

i am loading it like that through css:

background-image: url('/Img/icons.png');

the location is fine cause when i load it through aspx page like that it loads fine:

<img src="Img/icons.png" />

the location is Img/icons.png
and for css its Css/style.css

its on local host

and i cant figure up whats wrong any help will be appreciate
Thanks.

  • 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-13T04:55:49+00:00Added an answer on June 13, 2026 at 4:55 am

    if your css file is in the same folder as your Img folder, try

    background-image: url('Img/icons.png');
    

    apart from that, you will have to show us your file structure to understand where the error is. 99.99% you are simply referencing the image with the wrong url.

    EDIT:

    as per the location you’ve specified, it should be

    background-image: url('../Img/icons.png');
    

    this: .. means one level above the current location, then look for /Img/icons.png

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

Sidebar

Related Questions

I've come across a weird problem whilst trying to optimise the following image: It
i have a weird problem. I am trying to write simple Client - Server
I have a weird problem. I'm trying to drop a procedure only if it
I have a very weird problem while trying to pass and SQL query using
I have a weird problem on my hand. I am trying to read an
I have this weird problem when trying to INSERT a row into my mysql
I'm trying to work with requirejs and text plugin and I have weird problem.
I have a weird problem in java. I am trying to make a math
I have a WEIRD problem with Future.get() in Java. It returns always with an
I have a bit of a weird problem here! I am trying to write

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.