Click to See Complete Forum and Search --> : images


dennic
02-11-2003, 05:01 PM
for some reason when i place an image on a page that has a link to it, it has this ugly purple border around it. how do i get rid of it?

thanks

Nedals
02-11-2003, 05:04 PM
<img src="theimage.gif" border=0>

Charles
02-11-2003, 05:16 PM
The border attribute of the IMG element was depricated 18 December 1997. Use instead:

<img alt="W3C" src="http://www.w3.org/pub/WWW/Icons/WWW/w3c_home" style="border:0px">

or, to eliminate the borders on all image links on the page use in the document HEAD:

<style type="text/css">
<!--
img {border:0px}
-->
</style>

Nedals
02-11-2003, 05:27 PM
I know that we agree that everyone should upgrade to the latest browser. But just in case...

....style="border:0px" will not work in NS4xx
.... border=0 will work with ALL browsers.

Charles
02-11-2003, 05:38 PM
style="border:0px" works just fine in NN 4 and any other browser that came out after 1997. As to border="0", there are more than a hundred graphical browsers out there not counting the different versions of those browsers. Have you tried that officially depricated attribute on all of them?