Hi,
I am relatively new to css.
I define the link a:link, a:visited, a:active, a:hover on css file, for some reason the a href link inside td element doesn’t do the behaviour like what’s defined on css file. but it works fine on firefox and chrome.
here is the link entry on css file.
a:link
{
text-decoration: none;
color: black;
border-bottom: solid 1px #c5dc09;
}
a:visited
{
text-decoration: none;
color: black;
border-bottom: solid 1px #c5dc09;
}
a:active
{
text-decoration: none;
color: black;
border-bottom: solid 1px #c5dc09;
}
a:hover
{
text-decoration: none;
color: black;
border-bottom: solid 1px #0b1a66;
}
and here is the code bit that doesn’t seems to work on ie.
<table border=“0” cellpadding=“0” cellspacing=“0” width=“100%”>
<tr>
<td valign=“bottom”><p class=“heading1”>Data Vault</p></td>
<td valign=“bottom” align=“right”><a href=“Javascript:newWindow(‘solutions/infrastructure/Pacnet-DataVault-FAQ.PDF’)”><img src=“images/misc/acrobat_icon.gif” border=“0”>FAQ</a></td>
</tr>
</table>
on firefox and chrome the border-bottom is displayed and change color when I hover, but on ie it doesn’t show border-bottom line at all.
you can view the page on http://www.elixir.com.au/staging/solutions.cfm?docId=7
on firefox and chrome the border-bottom line is displayed below FAQ on the same line as Data Vault, but on ie there is no underline, but I put the same href outside the table the underline is displayed on ie (the faq under the data vault heading).
any reason why ie not inherit the setting, I also found ie do the same with font as well, I have to define font entry for every single html tag to get it to display the correct font.
but with the link behaviour I don’t know what is the correct syntax to define it on ie.
I try to define the behaviour with the following heading entry, but doesn’t work.
td a:link { … }
td.a:link { … }
td>a:link { … }
I try put id on the table <table id=“id1” … also doesn’t work.
#id1 td { … }
#id1 td a:link { … }
#id1 td.a:link { … }
#id1 td>a:link { … }
I appreciated if you could help me or point me on the right direction to fix this issue, please.
NB: I tested on ie8 and ie9 both version doesn’t work, I didn’t test on earlier version on ie.
Thank you in advance.
Regards
- Haris -