Jump to content

Link Display Issue In Ie7


stringsy
 Share

Recommended Posts

I have text-decoration: none for links in my code which works fine in Google Chrome, Firefox and IE9 but in IE7 some links randomly display as underlined. Any way of fixing this? Here's the code: a:link {color: #42413C;text-decoration: none;}a:visited {color: #42413C;}a:active, a:focus {text-decoration: none;}a:hover {color: #980000;} Thanks

Link to comment
Share on other sites

Given your code, the visited links would be underlined because you haven't told them not to be. Rather than using an "a:link" selector, I recommend just using "a" on its own, to apply the style to the link in every possible state.

a {  text-decoration: none;}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...