467,910 Members | 1,786 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

removing border for image


i have set the border attribute to 0 for the img tag, however when an image is clicked which is a hyperlink, when the mouse is clicked there is a thin line that appears along the entire width and height of the image is there a way to remove this thin line using css.

following is the code i am presently using:

<img src="image.jpg" border="0" style="border-style:none">

this seems to work fine in IE not in Firefox

please advice.

Jan 27 '08 #1
  • viewed: 1920
2 Replies
Expert 512MB
What styling have you used on your anchor tag? You might need to use something like:

[HTML] <a href="..." style="border-style:none; text-decoration:none;">[/HTML]
Jan 27 '08 #2
Or in the css:
a img{border-style:none}
Jan 27 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Christopher Scott | last post: by
33 posts views Thread by Thomas Mlynarczyk | last post: by
2 posts views Thread by Michael Winter | last post: by
7 posts views Thread by Bob Bedford | last post: by
3 posts views Thread by willwade | last post: by
7 posts views Thread by roN | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.