By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

removing border for image

P: 54

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
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 979
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

P: 428
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.