My page contains the following CSS rule:
a:link,a:active,a:visited{text-decoration:none;}
I have encountered an issue where this rule is not working as expected. To apply the rule within a div
with the id="test"
, I had to modify the rule like this:
#test a:link,#test a:active,#test a:visited{text-decoration:none;}
I am puzzled by this behavior and unsure of the reason behind it. Can you provide any insight into why this might be happening?