SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot HardinComp's Avatar
    Join Date
    May 2003
    Location
    Boston, MA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Turning off image borders

    I'm working on a site for a local radio program and I'm trying to make sure my code is valid within Doctype HTML 4.01 Strict, but I've run into a bit of a problem with my images with links. I want to make sure there isn't a border around the image when it's a link, but the W3C MarkUp Validtor came back with
    Code:
     Line 49 column 130: there is no attribute "BORDER" (explain...). 
      ...ail us!" width=119 height=120 border=0 ></a></p>
    Ok, I understand that the BORDER attribute is being depreciated, but how do I work around it now?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    style="border: none;" should fix your problem

  3. #3
    SitePoint Zealot HardinComp's Avatar
    Join Date
    May 2003
    Location
    Boston, MA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hot dawg! It worked. I just added it to my style sheet for all of my images. Thanks!

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by HardinComp
    Hot dawg! It worked. I just added it to my style sheet for all of my images. Thanks!
    No problem!

  5. #5
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Beware the borders will be there in NS4... oh no! Not NS4!!!
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  6. #6
    SitePoint Zealot HardinComp's Avatar
    Join Date
    May 2003
    Location
    Boston, MA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not too worried. I'm also hoping to add a message to people who are using old browsers encouraging them up UPGRADE and see the site the way it's truly intended.


Bookmarks

Posting Permissions

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