Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Cannot use more than one link tag?

Reply
Thread Tools

Re: Cannot use more than one link tag?

 
 
richard
Guest
Posts: n/a
 
      06-05-2013
On 04 Jun 2013 22:34:57 GMT, Marty wrote:

> This is driving me nuts.
>
> In the CSS file I have:
>
> a.blue { display:block ;
> width:120px ;
> height:120px ;
> background:url("bluepicture.gif") no-repeat ;
> }
>
> a.blue:hover {
>
> background:url("differentbluepicture.jpg") no-repeat ;
> }​
>
> a.red { display:block ;
> width:120px ;
> height:120px ;
> background:url("redpicture.gif") no-repeat ;
> }
>
> a.red:hover {
>
> background:url("differentredpicture.jpg") no-repeat ;
> }​
>
> In the code I use:
>
> <td width="140px"><a class="blue" href="gotobluesite.php"></a></td>
> <td width="140px"><a class="red" href="gotoredsite.php"></a></td>
>
> The blue picture and the hover picture will work for blue but not for
> red. If I reverse the order of the css, then the top one will work not
> the second.
>
> What stupid mistake am I making?


Just a thought.
Since this is a php page you have in the href, you may want to try the full
URL path. Include the http:// stuff.
 
Reply With Quote
 
 
 
Reply

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
Re: Cannot use more than one link tag? JJ HTML 15 06-07-2013 01:00 PM
Can one declare more than one signal on one line? Merciadri Luca VHDL 4 11-01-2010 02:00 PM
Like all great travelers, I have seen more than I remember andremember more than I have seen. shenrilaa@gmail.com C Programming 0 03-05-2008 03:26 AM
Will one ASP .Net worker process use more than one CPU? =?Utf-8?B?Sm9obiBCYWlsZXk=?= ASP .Net 3 09-14-2007 05:32 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM



Advertisments