1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML putting hyperlink creates a Square box around images

Discussion in 'Web Development' started by BobbyS, May 14, 2008.

  1. BobbyS

    BobbyS New Member

    I tried to put a hyperlink on my website to different pages(on my website itself) but the problem is that it creates a square biox around those jpegs.
    Lets say if I have a jpeg/gif by the name of SERVICES and from homepage if I put a hyperlink to this page it creates a box around that image(SEVICES-jpeg/gif).

    I mean when I see the page on IE it shows a blue bosx around all the images which have hyperlinks. here is how the code looks like:-


    <tr>
    <td background="images/fon03.gif"><img src="images/fon03.gif" width="25" height="39"><a href="
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    A link to the site would help.
     
  3. BobbyS

    BobbyS New Member

  4. tzoki

    tzoki New Member

    I have never seen this but I think it's interesting :) now you don't have to make 3 jpegs of those buttons in different colors to show what links you have visited
     
  5. pezboy45

    pezboy45 Mod/Design & Coder [Pro]

    I've had it happen many times, here's what to do!

    This is what you have now:
    HTML:
    <a href="http://www.rainainc.com"><img src="images/but01.gif" width="78" height="39"></a>
    -------------
    What you need to change/add would be this:
    border="0px"

    So, finally you would end up with this:
    HTML:
    <a href="http://www.rainainc.com"><img src="images/but01.gif" width="78" height="39" border="0px"></a>
    Hope that helps!
     
  6. Jaybirddesigns

    Jaybirddesigns New Member

    Nice just needed that and I remembered you posted somthing like this.

    Thanks
     
  7. xbox360gurl70s

    xbox360gurl70s New Member

    is it standard to put 0px instead of just 0? I always use border="0" but that's correct. If you don't want borders, you have to tell browsers that you don't want them by declaring a 0