4 replies [Last post]
Tikithehut
Tikithehut's picture
Offline
newbie
CA, USA
Last seen: 13 years 1 week ago
CA, USA
Joined: 2007-11-14
Posts: 2
Points: 0

Apologies if this has been addressed before, I'm new to these forums and looked high and low for the FAQ but found nary a link (not even in the place that told me to look at the FAQ Tongue )

If I'm not mistaken, IE does not accept the "a:visited" css

As such how does one work around styling the text in such links? I've been able to remove the automatic underline via ".something {text-decoration: none;}".
Specifically I'm interested in altering the color of the visited link and have not seen anything online telling me how to accomplish this via CSS in IE.

I'm not sure if example code is needed here, but I'll try and include something relevant

For firefox, this works

a:visited {text-decoration: none;
color: #FFF;}

For IE that doesn't

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 19 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

do you have any html? do you

do you have any html?
do you have a doctype?
have you validated?
do you have a link?

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Katie
Katie's picture
Offline
Enthusiast
Seattle, WA
Last seen: 5 years 3 weeks ago
Seattle, WA
Timezone: GMT-8
Joined: 2006-08-06
Posts: 357
Points: 2

Tikithehut wrote: If I'm not

Tikithehut wrote:

If I'm not mistaken, IE does not accept the "a:visited" css

IE will use that code, if it's applied correctly. That's why Deuce is asking about validation, and all the other stuff. There's probably something else that's going wrong.

Something to consider:
Be sure order your CSS declarations like this:
a
a:link
a:visited
a:hover
a:active

Doing it in a different order can cause unexpected results.

Blog: Pew Pew Laser Blog
Online File Storage: DropBox
Daily Deals on Local Activities: Groupon

Tikithehut
Tikithehut's picture
Offline
newbie
CA, USA
Last seen: 13 years 1 week ago
CA, USA
Joined: 2007-11-14
Posts: 2
Points: 0

Thanks much!

Yay it worked out! Looked at the coding again based on your suggestion.

I had the correct order for the pseudo classes but had the syntax wrong.

As to the doctype:

No link sadly, don't know much in the way of hosting the site on my work's servers, and not ready to host it outside of those servers.

Thanks much again!

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 35 weeks 6 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

You could always just post

You could always just post all the code here, like we ask for Wink

Never mind, glad you got it sorted Wink

Verschwindende wrote:
  • CSS doesn't make pies