[thelist] stopping link border with xhtml
Ryan Hidden
ryan_hidden at yahoo.com
Fri Jul 13 13:37:42 CDT 2001
> From: "Gary B. Swanson"
> Hi All,
>
> While trying to be xhtml1 compliant I have hit
> an unsolved problem.
>
> While using a css, Netscape images used as
> links have a annoying blue
> border. The only solution I have found is
> setting the border=0 within the
> image tag. This, apparently, isn't compliant.
> So, I am looking for a css
> fix.
Gary,
You could try setting the border color to the
same as the background. Seems to work for me.
style type='text/css'
//This works for Netscape 4.7 & 6
.noborder a:link {color: COLOR;
background-color: COLOR;}
.noborder a:visited {color: COLOR;
background-color: COLOR;}
//This works for IE 5.5
.noborder img {border-color: COLOR;}
or
.noborder img {border: none;}
/style
body
<div class="noborder">
<a href="http://foo.com">
<img src="/foo/foo.png" height='250px'
width='250px' alt="" /></a>
</div>
/body
HTH,
Ryan Hidden
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the thelist
mailing list