Creating images as links with no borders.

Issue

Creating images as links with no borders.

Cause

Border not specified as equal to 0.

Solution

Any image that has a ling will have a border to help indicate it is a link. Add border="0" to your IMG HTML tag if you don't want a border.

<A HREF="http://www.computerhope.com"> <IMG SRC="http://www.computerhope.com/logo.gif" border="0" alt="Logo"> </a>

If you don't want any of your images to have a border create a CSS rule or CSS file that has the below code in it.

img { border-style: none; }

Example

Logo

  • Category
  • HTML Q&A
  • Related pages
  • HTML Help
  • Solved?
  • Were you able to locate the answer to your question?