Forum Moderators: not2easy

Message Too Old, No Replies

IE6 - border transparent for links

         

alexandruc

8:54 am on Mar 4, 2010 (gmt 0)

10+ Year Member



Hello,

I have the following situation on a site I made (I am not a professional web developer/designer):

Links in my menu use the following CSS code:
a.link:link{color:#ffffff;text-decoration: none;font: 13px/12px copperplate gothic light, verdana; font-weight: bold; border: 1px solid transparent;padding:5px;}
a.link:visited{color:#ffffff;text-decoration: none;font: 13px/12px copperplate gothic light, verdana; font-weight: bold;border: 1px solid transparent;padding:5px;}
a.link:active{color:#ffffff;text-decoration: none;font: 13px/12px copperplate gothic light, verdana; font-weight: bold;border: 1px solid transparent;padding:5px;}
a.link:hover{color:#000040;text-decoration: none;font: 13px/12px copperplate gothic light, verdana;font-weight: bold; border: 1px solid #000000; padding:5px;background-color: #ffffff; }


Basicly the links appear as normal text, but on hover the links have a border (and the colors change).

The problem only appreas in IE6 which does not know the transparent property. For IE7/8 and Firefox everything is just fine (I haven't tested on Opera or Safari).

I am using:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


Can anyone help me with a solution for displaying the links as it should also in IE6 ?

Thanks!

Auciker

12:43 am on Mar 6, 2010 (gmt 0)

10+ Year Member



Try this:
img{border:0;}


Personally, I stopped doing compliance for ie6 about a year ago. Unless a significant number of visitors to my site use ie6, I don't care. Most major sites are now thumbing their noses at ie6 and refusing to do compliance anymore. It's old, buggy, outdated, and never did work with a damn in the first place. The current versions of ie are barely better, but at least I don't have to do stupid png fixes anymore. I've been known to add an ie6 only messages to the top of sites encouraging ie6 users to upgrade their dangerously old browser.

rocknbil

7:59 pm on Mar 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard alexandruc, the previous will work but will declare no borders for **all** images, you can also do

a img { border:none; }