As I develop an Asp.net website, I've encountered a surprising issue. Here is my folder structure:
- Styles
- master.css
- Images
-webPages
-scripts
When trying to access an image in the Images folder from the CSS file, I receive a "Failed to load resource: the server responded with a status of 404 (Not Found)" error in Chrome. This error only occurs in the CSS file, as the images work fine in my Asp.net pages. An example of the code I'm using to access the image in CSS:
a.close { background-image: url(/images/close-arrow.png); background-position: left center; padding: 0 0 0 25px; }
I'm puzzled by this issue and seeking assistance in resolving it. Your help is greatly appreciated. Thank you in advance.