Jump to content

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


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]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.