Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Resolved Question

Looking for a code

Jul 30, 2012 7:12AM PDT

Hi,

I had posted a message in the Graphics Forum, but they referred me to this forum because I had asked for a code. This was my original message:

Hi,

How do I remove the red border around images? I know it has to do with visited or not visited links, but I don't like it because they all appear different.... Is there a code (HTML code) I can add to a page with images so that there is no border around them?

Thanks!

Discussion is locked

OzBo has chosen the best answer to their question. View answer

Best Answer

- Collapse -
How to remove red border aroung images
Aug 4, 2012 11:02PM PDT

1. Go to HTML Code 9 if you are using Dreamweaver or Frontpage)
2. Search for the html code for the image e.g <img src="imagename.jpg">
3. Enter border ="0" as part of the code. Therefore, the html code for the image will become
<img src="imagename.jpg border="0">

4. save the file and preview it

- Collapse -
Thanks
Aug 5, 2012 1:10PM PDT

Thanks, I will try that.
I know how to find the code of an image (I just select the image and then go to the code view in Frontpage and the code is highlighted), but I was just wondering what the "code 9" you mention is?

- Collapse -
Interesting.
Aug 11, 2012 7:01AM PDT

Might work. But certainly the syntax is wrong. Try
<img src="imagename.jpg" border="0">
or
<img src="imagename.jpg" border=0>
In other words: add a quote directly behind jpg

Kees

- Collapse -
OK
Aug 11, 2012 12:04PM PDT

Thanks, Kees, I will do that. A few days ago I cleaned up Firefox and the links/borders were then gone too of course. I just wanted to add the codes this weekend. There are a lot of images on my website!

- Collapse -
Answer
Re: border around images
Jul 30, 2012 7:19AM PDT

Do you mean all images, or only images used as a link? I assume the last, but you don't explicitely say so.

It's not html you're looking for, but css.
http://www.w3schools.com/cssref/sel_hover.asp gives an example how to specify colors for active, hover, visited and none of the three (just link).

Kees

- Collapse -
I meant...
Jul 30, 2012 9:48AM PDT

Hi, thanks for the reply.
Yes, I meant images used as a link.

Thanks for the link to the CSS site. So if don't want any border should I just use "none" instead of a colour? Is there something only for images? Because I suppose that if I choose "none" then normal links will also have no colour. (although I suppose they will still be underlined?)

- Collapse -
Re: colour
Jul 31, 2012 5:04AM PDT

Try none and see what happens. However, I don't know of any difference between picture and text link in CSS.

Kees