Hi,
I am trying to have a image that is linked to not have the deocration around it. Here is my code that I am using, does anyone know what I am doing wrong?
External style sheet code:
a.two:link {text-decoration: none;}
a.two:visited {text-decoration: none;}
a.two:active {text-decoration: none;}
XHTML Body Code:
<td class="button"><a class="two" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.hemisphere.net/demo/contactus.htm" target="_parent"><img src="cntbutt.png"></a></td>
Thanks<style type="text/css">
a.two:link img {
border: 0;
}
</style>
That will remove the border from any <img> that's nested within an <a> that has the class "two" applied to it.
If I'm correct in assuming you mean the border around the image, then that'll do it for ya. Hey Paul,
That did not work, I still have the border. Would you mind taking a look at the whole code, maybe I missed something, It is at <!-- m --><a class="postlink" href="http://www.hemisphere.net/demo/index.html">http://www.hemisphere.net/demo/index.html</a><!-- m -->
Thanks
LisaI didn't see the code in your stylesheet, but I used the incredibly awesome EditCSS plugin for Firefox, popped the code in, and it worked.
Also, since you're using the border="0" attribute on all your other images, why not use it on this one?I will do that, THANKS!Originally posted by Blelisa
I will do that, THANKS!
No problem.
I am trying to have a image that is linked to not have the deocration around it. Here is my code that I am using, does anyone know what I am doing wrong?
External style sheet code:
a.two:link {text-decoration: none;}
a.two:visited {text-decoration: none;}
a.two:active {text-decoration: none;}
XHTML Body Code:
<td class="button"><a class="two" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.hemisphere.net/demo/contactus.htm" target="_parent"><img src="cntbutt.png"></a></td>
Thanks<style type="text/css">
a.two:link img {
border: 0;
}
</style>
That will remove the border from any <img> that's nested within an <a> that has the class "two" applied to it.
If I'm correct in assuming you mean the border around the image, then that'll do it for ya. Hey Paul,
That did not work, I still have the border. Would you mind taking a look at the whole code, maybe I missed something, It is at <!-- m --><a class="postlink" href="http://www.hemisphere.net/demo/index.html">http://www.hemisphere.net/demo/index.html</a><!-- m -->
Thanks
LisaI didn't see the code in your stylesheet, but I used the incredibly awesome EditCSS plugin for Firefox, popped the code in, and it worked.
Also, since you're using the border="0" attribute on all your other images, why not use it on this one?I will do that, THANKS!Originally posted by Blelisa
I will do that, THANKS!
No problem.