Wednesday, November 21, 2007

Image references in your CSS not showing?

If you have a background image in your CSS called like this,

background-image: url(/images/background.gif);

...and when you run your Web application the background isn't showing up it could be a problem with your 'Virtual Path' setting. To fix this, click on the main project path in your Solution Explorer, at the very top, change the 'Virtual Path' property to read "/"

No comments: