css on visited link is not working in Firefox

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

css on visited link is not working in Firefox

Post by Lphp »

I want the visit link have different color , the following code only work on ie not Firefox, what can i do ? :cry:

Code: Select all

<style type="text/css"> 
   @media screen{
       a:link {
          
           font-family: verdana;
           font-size: 9pt;
           color: black;           
           text-decoration: none;
            background-color: white;
       }
       
      a:visited { text-decoration: line-through;
                  font-size: 7pt; background:lime;}
     
   }

User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: css on visited link is not working in Firefox

Post by AbraCadaver »

Is there more CSS? Maybe another style is more specific and overriding that one.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Lphp
Forum Commoner
Posts: 74
Joined: Sun Jun 26, 2011 9:56 pm

Re: css on visited link is not working in Firefox

Post by Lphp »

Code: Select all

<style type="text/css">
    @media print{
       .NonPrint{  display: none;}  
    }
  </style>
<style type="text/css"> 
   @media screen{
       a:link {
           /* Applies to links */
           font-family: verdana;
           font-size: 9pt;
           color: black;           
           text-decoration: none;
            background-color: white;
       }
       
      a:visited { text-decoration: line-through;
                  font-size: 7pt; background:lime;}
     
   }
    
</style>


<p class="NonPrint"><a href=${PAGE}?PageNum=$p> $p </a>
Post Reply