I make an image link and it ...

Discussion in 'HTML & Website Design' started by Klaas Koopman, Oct 4, 2005.

  1. #1
    Hey All,

    I'm working on a website, and when I make this image link to a certain place, it gets a line around the box, which screws up the whole design. How can I fix this?

    Kind Regards,


    Klaas Koopman
     
    Klaas Koopman, Oct 4, 2005 IP
  2. obenix

    obenix Eats an apple a day......

    Messages:
    2,236
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add the code "border=0"

    <a href="http://www.example.com/">
    <img src="example-image.png" border="0">
    </a>
    
    Code (markup):
     
    obenix, Oct 4, 2005 IP
    iskandar likes this.
  3. Klaas Koopman

    Klaas Koopman Well-Known Member

    Messages:
    895
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    128
    #3
    thanks i'll try right now!

    WOOHOO it works! thanks!
     
    Klaas Koopman, Oct 4, 2005 IP
  4. my44

    my44 Peon

    Messages:
    722
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Klass,
    Do you use software to generate HTML or you do hand-coding? If you're using Frontpage, the option window will ask you about setting the border=0 as well.
     
    my44, Oct 5, 2005 IP
  5. Forcefield

    Forcefield Peon

    Messages:
    314
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Or, if you're using CSS, you can use:

    img {
    border: 0px none;
    }

    Simply put, you wont have to worry about changing the border attributes for each image link. ;)
     
    Forcefield, Oct 5, 2005 IP