Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem setting background image on a link

Thread Tools

problem setting background image on a link

Posts: n/a
hi 2.0

No background image is displayed on this link. my goal to have a image that
can be clicked on...
My ultimate goal is to embed image swapping using CSS, so I thought it was a
good idea to start with to have somehting displayed at all... nothing is

<a id="Test1" runat="server" href="~/Pages/Test1.aspx"
style="background-image:url('~/Image/Original/Test1.png');" ></a>

in my webproject the images are stored in the \images\Original\ folder

why isn't anything displayed? what most I do to embed image swapping?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
Table td with background image & link & image Jean-Louis Crouzet HTML 4 07-23-2005 09:42 AM
changing a background image to a background colour? Dj Frenzy Javascript 3 02-10-2004 08:08 PM
link a background-image / div Marco Lehmann HTML 5 11-04-2003 08:58 PM