Results 1 to 2 of 2

Thread: Why does the first picture have a red rectangle around it ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    111

    Why does the first picture have a red rectangle around it ?

    I have a table like following. When I add link to each picture, the first element will have a red rectangle around it. What's the problem ?

    <table>
    <td><a href="./product.html"><img src = "./img/product.gif"></a></td>
    <td><a href="./news.html" onMouseOver = "replaceImg('newsoff','newsover')" onMouseOut = "replaceImg('newsoff','newsoff')" ><img src = "./img/news.gif" name ="newsoff" ></a></td>
    <td><a href="./recruit.html" onMouseOver = "replaceImg('recruitoff','recruitover')" onMouseOut = "replaceImg('recruitoff','recruitoff')" ><img src = "./img/recruit.gif" name ="recruitoff" ></a></td>
    <td><a href="./contact.html" onMouseOver = "replaceImg('contactoff','contactover')" onMouseOut = "replaceImg('contactoff','contactoff')" ><img src = "./img/news.gif" name ="contactoff" ></a></td>
    </table>

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Why does the first picture have a red rectangle around it ?

    A hyperlinked image by default shows a border, which you can get rid of using the border attribute.

    Code:
    <a href="somewhere"><img src="image.gif" border=0 /></a>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width