Jump to content

a:link, a:visited and a:hover script


Jtech

Recommended Posts

I have made a roll-over with Css and it works superb ... but thats not what i need help with ...

Any way,... I need help to assign roll-overs to one link rather that every time i make a link its gets the roll-over. i just want one link to have the rollover and the rest of the links to be normal links ... i have tryed to assign


  <style type="text/css">
      <!--
        a[href="#"][title="asd"]  {
                                  color:#00000;
 
  }
      -->
  </style>

<a href="#" title="asd"></a>


but it doesnt work it wont overide the roll-over and doesnt give it the color


Link to comment
https://forums.phpfreaks.com/topic/31001-alink-avisited-and-ahover-script/
Share on other sites

Just give the link a class name


Example:
[code]<style>

a.specialLink:link, a.specialLink:visited, a.specialLink:active {
    color: #333;
    font-weight: bold;
}

a.specialLink:hover {
    color: #f00;
    text-decoration: underline;
}

</style>

<a href="#" class="specialLink">Special Link</a> | <a href="#">Non special</a> | <a href="#">Non special</a>[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.