stringsy Posted October 8, 2011 Share Posted October 8, 2011 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 More sharing options...
Ingolme Posted October 8, 2011 Share Posted October 8, 2011 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 More sharing options...
stringsy Posted October 11, 2011 Author Share Posted October 11, 2011 This worked - thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.