/    Sign up×
Community /Pin to ProfileBookmark

Quick IE 6 CSS issue, A:visited working in FF, but not IE 6

Here is the CSS :

a.cleanborders:visited {color:#000000; background-color:#000000;background:#000000;text-decoration:none;}

Here is the HTML :

<a href=”#” class=”cleanborders” onMouseDown=”return handleMPDown()”><img name=”jsbuttonp” src=”imagesprevarrow.gif”></a>

In firefox the border around the button comes up black, which is what I want. In IE 6 the border comes up purple after I have clicked on the image link.

How do I get the visited color to change in both ?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@dtm32236Dec 11.2007 — i don't get it... do you have a URL?

if you want a border to come up, why aren't you using

border:1px solid black; (or whatever px you want)

color:#000000 is for text color.

and your background:#000000;

is just overwriting the previous background-color:#00000; (so this one is unnecessary)

what are you trying to accomplish here? i'm confused.
Copy linkTweet thisAlerts:
@bullyellisauthorDec 11.2007 — I do not want a border. At all. But for some reason that that <A><img> link gets a purple border in IE 6. I am pretty sure it has to do with the visited link property because all the other links on the page are purple (one's I have been to).

I want the image link to not have a purple border.
Copy linkTweet thisAlerts:
@dtm32236Dec 11.2007 — a img {

border:none;

}

add that to your stylesheet

...do you know CSS? does that make sense to you?
Copy linkTweet thisAlerts:
@bullyellisauthorDec 11.2007 — That did it! Thanks!
Copy linkTweet thisAlerts:
@dtm32236Dec 11.2007 — no problem...
×

Success!

Help @bullyellis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...