Problem removing underline in hyperlink in Firefox and IE8

I´m having an annoying problem with removing underline from hyperlinks in Firfox and IE8.

I use this doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
I use one style for the main links were I want all links to be underlined and another style for the menu were I don't wan't the links underlined.

It works fine in IE6 and IE7 but In other browser like IE8, Firefox, Opera and Goggle Chrome the links are always underline.  To get rid of the underlines I have to set text-decoration:none to the main stylw, which I don't wan't as I only wan't the menu to be without underlines.
My main style for the hyperlinks is like this:
A:visited {
	COLOR: #ED1E24; TEXT-DECORATION: underline	}
A {
	COLOR: #ED1E24; TEXT-DECORATION: underline}
A:hover {
	COLOR: #54554F; TEXT-DECORATION: underline;}
A:active {
	COLOR: #ED1E24; TEXT-DECORATION: underline}
 
The style for the menu is like this:
 
.Menu:visited {
	font-family: verdana;
	font-size: 11;
	color: #54554F;
	font-weight : bold;
	text-decoration : none;
}
 
.Menu {
	font-family: verdana;
	font-size: 11;
	color: #54554F;
	font-weight : bold;
	text-decoration : none;
}
.Menu:hover {
	font-family: verdana;
	font-size: 11;
	color: #ED1E24;
	font-weight : bold;
	text-decoration : underline;
}
.Menu:active {
	font-family: verdana;
	font-size: 11;
	color: #54554F;
	font-weight : bold;
	text-decoration : none;
}
 
Do you know how I can get rid of the underlines in the menu links without removing underline for all the website?

Open in new window

GDB08Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
David S.Connect With a Mentor Commented:
HTML is short for Hyper-Text Markup Language, so by "markup" I mean I need to see that section of your HTML code.

Also I should mention that the "A:visited" should come after the "A" rule, not before it. The same applies to the ".Menu" and ".Menu:visited" rules.

By the way, you don't need that many rules to set those styles.
http://www.communitymx.com/content/article.cfm?cid=90F55
http://www.tyssendesign.com.au/articles/faqs/what-is-shorthand-css/
0
 
David S.Commented:
Please show us your markup. I can't tell which IE bug you've run into based on just those style rules.
0
 
GDB08Author Commented:
I'm not sure what you mean by markup?
If I disable underline in the first style then it works in the second also.
0
 
qwerty021600Connect With a Mentor Commented:
i also came across the same problem once,... infact I had to remove it from the main and give classes to all the links..
So i think you also have to do the same.
0
All Courses

From novice to tech pro — start learning today.