User Control css images

Discussion in '.NET' started by ShaneFindley, Jun 30, 2010.

  1. ShaneFindley

    ShaneFindley

    Joined:
    Jun 30, 2010
    Messages:
    1
    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
    ShaneFindley, Jun 30, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom Rowton
    Replies:
    2
    Views:
    643
    Tom Rowton
    Aug 1, 2003
  2. vatech1993
    Replies:
    4
    Views:
    5,670
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  3. StraussGuy@hotpop.com
    Replies:
    0
    Views:
    426
    StraussGuy@hotpop.com
    Jan 7, 2005
  4. Mad Scientist Jr
    Replies:
    0
    Views:
    624
    Mad Scientist Jr
    Mar 22, 2006
  5. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    526
    Jonathan Wood
    Feb 2, 2010
Loading...

Share This Page