Re: Cannot use more than one link tag?

Discussion in 'HTML' started by richard, Jun 5, 2013.

  1. richard

    richard Guest

    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.
    richard, Jun 5, 2013
    #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. Merciadri Luca
    Replies:
    4
    Views:
    802
  2. JJ
    Replies:
    15
    Views:
    571
    123Jim
    Jun 7, 2013
  3. richard
    Replies:
    2
    Views:
    482
    Denis McMahon
    Jun 5, 2013
  4. Steven D'Aprano
    Replies:
    0
    Views:
    81
    Steven D'Aprano
    Dec 23, 2013
  5. Replies:
    3
    Views:
    74
    Gary Herron
    Dec 23, 2013
Loading...

Share This Page