User Control css images

Joined
Jun 30, 2010
Messages
1
Reaction score
0
Hi everybody

I am having an issue whilst trying to created some User Controls which I can drop into a site at any point, the issue I have is with setting Div Background images.

I know I could set these to use the full url but this is impractical as I would need to change it for every new site I create.

I also can't use ../ as I may be dropping the control will be used in different places all the time.

The only alternatives I have seen have been ~/ or / to go to root, however these don't seem to be working with the css background-image: url() setting.

Any alternative suggestions would be appreciated :)

Cheers
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top