By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,494 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,494 IT Pros & Developers. It's quick & easy.

a:hover in Firefox VS MSIE

P: n/a
Hi,

I got a problem with MSIE, using the below CSS... MSIE won't obey my
sheet, whereas Firefox does it exactly right. Anyone knows an
solution/explanation..?

..border1 {
border: thin solid #990000;
}
a:link {
color: #000000;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
background-color: #990000;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
..tekstbrood {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
text-decoration: none;
}
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Els
Frederik wrote:
Hi,

I got a problem with MSIE, using the below CSS... MSIE
won't obey my sheet, whereas Firefox does it exactly right.
Anyone knows an solution/explanation..?

.border1 {
border: thin solid #990000;
}
a:link {
color: #000000;
text-decoration: none;
}
a:hover {
color: #FFFFFF;
background-color: #990000;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
.tekstbrood {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
text-decoration: none;
}


What if you get the order right, like this:

a:link
a:visited
a:hover
a:active

In the order you used, hover wouldn't work on visited links.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 20 '05 #2

P: n/a
Frederik skrev:
I got a problem with MSIE, using the below CSS... MSIE won't obey my
sheet, whereas Firefox does it exactly right. Anyone knows an
solution/explanation..?


It's wrong order, it must be

link
visited
hover
active
--
Knud
Topposter du svar, s ryger du p min ignoreringsliste.
http://usenet.dk/netikette/citatteknik.html
Jul 20 '05 #3

P: n/a
Knud Gert Ellentoft <el*******@mail.tele.invalid> wrote in message news:<as********************************@dtext.new s.tele.dk>...
Frederik skrev:
I got a problem with MSIE, using the below CSS... MSIE won't obey my
sheet, whereas Firefox does it exactly right. Anyone knows an
solution/explanation..?


It's wrong order, it must be

link
visited
hover
active


Thanks Els, thanks Knud..! It's working perfectly now.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.