image link no border

Discussion in 'HTML & Website Design' started by JEET, Nov 30, 2005.

  1. #1
    Hi,
    I am trying to place two images . Both are links .
    I have removed the border with BORDER="0" attribute but the images have a little line at the end . How do I remove this ?
    Thanks
    regards
    jeet
     
    JEET, Nov 30, 2005 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try placing border=0 in the <img> and <A> tags, not sure which one it is.

    Also, make sure that there are no spaces betweem your <img> and <A> tages

    Good luck
     
    ServerUnion, Nov 30, 2005 IP
  3. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #3
    Hi,
    Thanks for help .
    I added a STYLE="TEXT-DECORATION: NONE" to the A tag and it works .
    Thanks
    regards
    jeet
     
    JEET, Nov 30, 2005 IP
  4. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I was just going to ask what your CSS looked like. glad you found it...
     
    ServerUnion, Nov 30, 2005 IP
  5. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Really??? I just tried the same and it didn't work in IE or FF. Normally what you would do is set the image's border-style property to none.
     
    FeelLikeANut, Nov 30, 2005 IP
  6. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #6
    You are right . The Border in image is already set to "0" .Like :
    <a href="" style="text-decoration: none"> <img src="" border="0"> </a>

    Regards
    jeet
     
    JEET, Dec 1, 2005 IP
  7. Johnn

    Johnn Banned

    Messages:
    2
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Or it could also be:

    <a href=""><img src=""  style="border:0"></a>
    Code (markup):
     
    Johnn, Dec 3, 2005 IP
  8. dj1471

    dj1471 Well-Known Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    116
    #8
    I suspect that the line was caused by your code having a space before the closing </a> tag, e.g.
    
    <a href="whatever"><img src="whatever" border="0"> </a>
    
    HTML:
    instead of:
    
    <a href="whatever"><img src="whatever" border="0"></a>
    
    HTML:
    You also shouldn't mix HTML attributes and CSS, so the correct way to do it is:
    
    <a href="whatever"><img src="whatever" style="border: 0px;"></a>
    
    HTML:
    You shouldn't need the 'text-decoration: none;' at all.
     
    dj1471, Dec 3, 2005 IP