Images that are linked have boxes around them

Discussion in 'HTML & Website Design' started by frankelectronics, Dec 14, 2009.

  1. #1
    Is there a code I can interpret so that my images that link to other pages do not have boxes around them? When I remove the hyperlink off the image the box around it disappears.
     
    frankelectronics, Dec 14, 2009 IP
  2. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, you just need to add:
    You need to add this inside the <img> tag. For example:
     
    fierceservers, Dec 14, 2009 IP
  3. frankelectronics

    frankelectronics Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you.
     
    frankelectronics, Dec 14, 2009 IP
  4. combus

    combus Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    For a faster solution, you could add img{border:0} to your CSS, so you don't have to manually add border="0" to every single image you have in your markup.
     
    combus, Dec 14, 2009 IP
  5. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Very true, long day at work! I should have pointed this out :) Thanks
     
    fierceservers, Dec 14, 2009 IP