Quick IE 6 CSS issue

Bulldog13

Golden Member
Jul 18, 2002
1,655
1
81
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="images\prevarrow.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 ?
 

skrilla

Senior member
Oct 22, 2004
833
0
71
Try changing the border on the actual image instead:

a.cleanborders img {border:2px solid black}
 

911paramedic

Diamond Member
Jan 7, 2002
9,448
1
76
Just remember that ALL your linked images will behave this way now. You can specify it more with:

.cleanborders a img { border:none; }

I like to do a global reset and start from scratch, that way I can dictate how everything looks. Google "yahoo css reset" if you don't know what it is/does.
 

boatillo

Senior member
Dec 14, 2004
368
0
0
Here is what you *want* to do. Put in script to load one CSS for IE browsers and another CSS for every other browser. IE sucks so bad.