I have an image in a css whenever i put html link to it i see there is an ugly blue line around it. Why is this happening and how can i remove it ? Many thanks.
I have an image in a css whenever i put html link to it i see there is an ugly blue line around it. Why is this happening and how can i remove it ? Many thanks.
that is the default hyperlink property for image links. just as the blue color / underline is for text.
you can get rid of it by using css either in your stylesheet or inline
Code:<a href="/url/path"><img src="/image/path" style="border:none"></a>
Type this in just before the closing </head> tag on your web page:
<style type="text/css">
img
{border:0;}
</style>
That way you never have to use extra markup to remove the ugly blue
border from linked images.
HTML:
<p><a href="http://myaffiliatesite.com" title="my affiliate site"><img src="image.jpg" title="my great image" alt="my great image" width="100" height="100" /></a></p>
ClaireP
Bookmarks