May 28, 200917 yr <html> <head> <title>site</title> <STYLE type="text/css"> <!-- .class1 a:link { color: #ffffff; text-decoration: none; } .class1 a:visited { color: #ffffff; text-decoration: none; } .class1 a:hover { color: #000000; } .class2 a:link { color: #000000; text-decoration: bold; } .class2 a:visited { color: #000000; text-decoration: bold; } .class2 a:hover { color: #000000; text-decoration: none; } //--> </STYLE> </head> <body bgcolor="#FFFFFF" cellpadding=0 leftmargin="0px" topmargin="0px" marginwidth="0px" marginheight="0px"> <table height="100%" width="100%" border="0" cellpadding="0" CELLSPACING="0" bordercolor="#FFFFFF"> <tr valign="top"> <td valign="top"><center> <table height="100%" width="1000" border="0" cellpadding="1" bordercolor="#FFFFFF" background="background 2- sample1.gif"> <tr> <td width="115" bgcolor=#F7F7F7> </td> <td valign="top" width="195" bgcolor="#31528C" colspan="2" height="80"><align=right><img src="banner.jpg"></td> <td width="115" bgcolor=#F7F7F7> </td> </tr> <tr> <td width="115" bgcolor="#CED6DE"> </td> <td width="195" bgcolor=#ffffff background=centerbg.jpg><font face="arial"><b><span class="class1"> <td height="180" width="600" bgcolor=#FFFFFF background=centerbg.jpg> <table height="100%" width="595" border=0> <tr> <td valign=top><br> <font size=3 font face=arial> <b>Welcome</b><br><br> <center><a href="claimpack.pdf" target="_blank"><span class="class2">Click here to Download Claim Pack</span></a> </td> </tr> </table> </body> </html> Ignor the messy tables etc, ive cut alot of code out. THe point im making is i call 2 sets of css links yet the 2nd set fails to change. Anyone know what the problem might be? Thanks, Marley
May 28, 200917 yr Very hard to see in your code but : .class1 a:link { color: #ffffff; text-decoration: none; } would target a link inside an element with a class of 'class1'. I don't see any nested links in your html? .class2 a:link { color: #000000; text-decoration: bold; } would target a link inside an element with a class of 'class2'. But the <span class="class2"> tags are inside the <a> tags. Welcome to the forum btw
Create an account or sign in to comment