I,am developing an Asp.net website and have struck in an surprise thing. My Folder structure is as shown below:
- Styles
- master.css
- Images
-webPages
-scripts
Now when i try to access an image in images folder from css, i get "Failed to load resource: the server responded with a status of 404 (Not Found) " error in chrome. The error only comes from the css file. I have used some images in my asp.net pages.It is working fine there.My example code for accessing an image in css is below
a.close { background-image: url(/images/close-arrow.png); background-position: left center; padding: 0 0 0 25px; }
I cannot understand what the problem is. Please Help me to sort this problem. Thanks in Advance