How to remove border around images? Please Help!

Discussion in 'CSS' started by Hellboy12, Apr 6, 2009.

  1. #1
    Hellboy12, Apr 6, 2009 IP
  2. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #2
    in the img tag put border="0" and that should do it!
     
    ryandanielt, Apr 6, 2009 IP
  3. Hellboy12

    Hellboy12 Peon

    Messages:
    98
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks...works...
     
    Hellboy12, Apr 7, 2009 IP
  4. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #4
    While that works a better solution would be to add
    img {border: none;}
    Code (markup):
    to you CSS file. Unless you only want one image to have no border.
     
    qazu, Apr 7, 2009 IP
    dlb likes this.
  5. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #5
    Rep added. The whole point of using CSS is to escape from using HTML markup to change visual aspects.
     
    dlb, Apr 7, 2009 IP
  6. Satovo

    Satovo Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    +1 dlb

    You can also use img { border: 0; }

    If you use a CSS it will make your HTML code fitter (can we say that ?! sorry i come from france and my english is not always very well) and it will may be valid with W3C rules.
     
    Satovo, Apr 7, 2009 IP
  7. Hellboy12

    Hellboy12 Peon

    Messages:
    98
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thank you all...my problem has been solved
     
    Hellboy12, Apr 7, 2009 IP