~ is resolved using ResolveClientUrl(). As there is nothing in the CSS that
uses this routine, it will fail.
A couple of solutions.
1. Create the master page for the upper level and then another for indention
(a level off root)
2. Create the image link from web root, which means, for virtual
directories, you use the name of the virtual directory in the link. This
works, although it is not too elegant.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think Outside the Box!
*************************************************
"PeterKellner" <pk**********@73rdstreet.comwrote in message
news:47********************************@4ax.com...
I'm having trouble setting a background style in a master page. The
declaration in the master page looks like this:
<div id="header_image" runat="server" style="background: transparent
url(images/bg_header.jpg) repeat-x scroll 0% 0%;;cursor: pointer;">
</div>
I tried adding runat="server" as well as changing the url to
~/images/bg_head.jpg but that didn't work.
Any suggestion on how to make the bg_header.jpg work on a master that
can be referended from aspx pages in subdirectories?
Thanks
Peter Kellner
http://peterkellner.net