problem specifying background image on DIV

J

Jeff

hi

asp.net

<div style="background-image:url('~/Images/MenuItems/Test1.png');
width:960px; height:108px;" runat="server">

No image is displayed in the background.... Test1.png is 960px wide and
108px high

what am I doing wrong here?
 
S

Scott M.

To rule out the obvious, what happens when you place the image in the same
folder as this web page and change the reference path to just the name of
the file?
 
J

Jeff

then it "works", well almost.

If I put the image in the root folder together with default.aspc.. then that
works.
But I want the background image to be used on a masterpage. Default.aspx is
depending on this masterpage.
the masterpage is located in the ~/Masters folder. I tryed to copy the image
into that folder but that didn't work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top