Help with HTML 4.01 Strict and the border tag

Latest post 06-15-2009 8:26 AM by nedharkey. 3 replies.

Help with HTML 4.01 Strict and the border tag

07-12-2004 12:06 PM

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,

RE: Help with HTML 4.01 Strict and the border tag

07-12-2004 12:50 PM

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:

RE: Help with HTML 4.01 Strict and the border tag

07-13-2004 7:18 AM

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!

Re: RE: Help with HTML 4.01 Strict and the border tag

06-15-2009 8:26 AM

Thanks! That code worked quite well for me! See it in action here;

http://www.cainrice.com/