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
| SitePoint Sponsor |

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



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!

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



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!
I personally wouldn't worry about it, something ridiculously low like less than 0.5% of internet users are still using NN4.

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



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
Meh, don't like Union, just looks to me like League but with less rules![]()

thanks, I'll try that
Gravity always wins

That did it![]()
![]()
Gravity always wins
Bookmarks