Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts

    solid outline around image links in Netscape and IE

    I've seen many people talk of a 'dotted' line that surrounds image tag links, but I'm having a solid line surround my image tag links in Internet Explorer and Mozilla builds. Is this the same thing? Is it a necessary part of the web page then for accessibility... because it's darn ugly and I've heard the complaints. I don't know if this is the same element. Thank you!! It's nice to be back

    example at: http://www.dotfive.com

    Safari doesn't show this, Mac IE doesn't show this -- Mac Mozilla builds, and PC IE does. Any ideas?
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Include border="0" in your image tag


    <img src="pic.jpg" border="0">

  • #3
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OR

    a img {border:none;}

    In your CSS

    I take no responsibility for the above nonsense.


    Left Justified

  • #4
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When I did the CSS version, it didn't work for some reason in Internet Explorer 6 for PC, but the border="0" in the img tag worked fine. Thank you!!
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #5
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    using border="0" may cause your pages not to validate! use:

    Code:
    img {
    border: 0px;
    }
    I have had problems with "none" before, but this always works. (for me at least)

  • #6
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmmm, that's interesting, but yes - that worked, and I would rather have CSS control over placing those elements in the XHTML -- thank you missing-score!
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •