SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: Hiding image link borders NN4

  1. #1
    SitePoint Zealot NZ Joe's Avatar
    Join Date
    Apr 2001
    Location
    Kapiti, New Zealand
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hiding image link borders NN4

    Hi,

    I am trying to build a HTML strict page that requires images to be links. The problem I get is that NN4 gives them all borders. How can I get rid of the borders?

    Thanks

    Joe
    Gravity always wins

  2. #2
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add border=0 as an attribute to the image tag?

    I'm assuming you are asking because stylesheets do not work (although I don't know what you've tried). If this doesn't cut it, then I don't know.
    Love it? Hate it? Helpful? Useless?
    Use the rate button to let me know what you think of my post!

  3. #3
    SitePoint Zealot NZ Joe's Avatar
    Join Date
    Apr 2001
    Location
    Kapiti, New Zealand
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tried that, but the w3 validator says that it is not valid (it is for transitional, not strict). I have also tried using: img {border:none;} in my css. I have also tried to do it with a css class without success. I think that this may just be something that I have to live with. Although I hope that someone can suggest a fix.
    Gravity always wins

  4. #4
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you may have to live with it if it's not in the W3 specifications, unless you want to write non-standard code.

    What are you validating against? XHTML1? or HTML4?
    Love it? Hate it? Helpful? Useless?
    Use the rate button to let me know what you think of my post!

  5. #5
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I personally wouldn't worry about it, something ridiculously low like less than 0.5% of internet users are still using NN4.

  6. #6
    SitePoint Zealot NZ Joe's Avatar
    Join Date
    Apr 2001
    Location
    Kapiti, New Zealand
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, It's HTML4 for a government site and therefore has to be valid. I was hoping to use strict, but I may have to go back to transitional, although the important thing is the content and not the look.

    Did you enjoy the rugby DJPackman? Aussies weren't too good at that on Saturday :-p
    Gravity always wins

  7. #7
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I LIKE sticking up for N4. :^D

    Hey NZ Joe

    I don't know if this will work for you, but if you have a solid bg color around the images, you could hide the border by setting it to that same color. Something like:

    .no-border {color:#ffffff;}

    and then

    <a class="no-border" ...

    from http://lists.evolt.org/harvest/week.cgi?w=20020311

  8. #8
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Meh, don't like Union, just looks to me like League but with less rules

  9. #9
    SitePoint Zealot NZ Joe's Avatar
    Join Date
    Apr 2001
    Location
    Kapiti, New Zealand
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, I'll try that
    Gravity always wins

  10. #10
    SitePoint Zealot NZ Joe's Avatar
    Join Date
    Apr 2001
    Location
    Kapiti, New Zealand
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did it
    Gravity always wins

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
  •