Reputation: 1030
I'm really sorry for asking this question. It's couple of hours I'm trying to solve a problem. I'm new to ASP.NET MVC. I have a css file in which I refer to tow images. Here is the code:
.white
{
background-image: url("images/site/glyphicons-halflings-white.png");
}
.normal
{
background-image: url("images/site/glyphicons-halflings.png");
}
I have also added these images to Content\images\site
folder. But it does not load the images and css does not work. I can see these tow error messages in firebug:
NetworkError: 404 Not Found -http://localhost:38544/Content/images/site/glyphicons-halflings.png"
NetworkError: 404 Not Found -http://localhost:38544/Content/images/site/glyphicons-halflings-white.png"
Any help is appreciated in advance.
Upvotes: 1
Views: 2221
Reputation: 1038720
404 error is a very strong indication that you have misspelled the image filename in your CSS or forgot to actually copy the image in the specified folder.
Upvotes: 4