View Full Version : why some image in css contains blue line around it ?
linux1880
11-07-2007, 09:37 AM
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.
boogyman
11-07-2007, 01:25 PM
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
<a href="/url/path"><img src="/image/path" style="border:none"></a>
ClaireP
11-12-2007, 02:37 AM
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
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.