

Joined on 07-08-2003
TechSoup Member
Hi,
I have a web page that is designed to the HTML 4.01 strict standard using CSS. I just don't know how to avoid using the border="0" html tag, I should be using a CSS tag but I don't know what will work. I don't want a border around my company logo which is a link. Here is the code:
..img src="../images/SEC_Logo.gif" alt="Shore Educational Collaborative Home" width="233" height="56" border="0"..
Because I have the border tag the page is not strict HTML. I need it to be Strict.
Any help would be greatly appreciated.
Thanks,


Joined on 05-24-2004
TechSoup Member
Haven't tried this myself yet - but you should be able to create a class in your CSS like:
img.NoBord
{border: 0}
then use it like:


Joined on 07-08-2003
TechSoup Member
Thanks for your help. The code I used was:
img {border-width: 0px;}
Evidently the default is no borders but unless you make the width 0 px it still puts a border in.
Thanks again!


Joined on 06-15-2009
Irmo, SC
TechSoup Member
Thanks! That code worked quite well for me! See it in action here;
http://www.cainrice.com/