Q:

Set background image for a master page that use in sub directories

I have a master page in my web site root.I have a folder named Images in root that Contains a background image for my master page.When I use this master page for my root web pages every thing is OK. But when I use this master page in web pages placed in sub directories because it can not find back ground image,ground image does not show.I don't want to use MapPath and get absolute path of image.
How I can show background image every where my master page use.
thanks

A:

Refer to your images with prefixing slash in your CSS style:
body
{
     background-image:url('/images/background.jpg');
}

