W3C home > Mailing lists > Public > www-validator@w3.org > August 2001

Re: when using validator is not sensible

From: Yuri Generalov <yuri@cactus-books.com>
Date: Fri, 17 Aug 2001 14:35:12 +0400
Message-Id: <200108171035.f7HAZKd08015@host.cactus-mall.com>
To: www-validator@w3.org
CC: huftis@bigfoot.com
Oops, thanks! Using both padding and margin resolves the problem in this case.

But... still another example. Netscape 6 and the latest Mozilla appear to be sensitve to
XHTML DTD line. If they see that line, they show thick black horizontal lines on my
pages on cactus-books.com. I have to use PHP to determine if the user agent is
Netscape 6, and to comment out the DTD in this case. Then the horizontal black lines
appear correctly, 1 pixel height.

The validator does not have "Netscape 6" in user agent description and sees the
page with DTD in place. That's why my pages validate. But users with Netscape 6
see the page without DTD which is not a good thing.

Best wishes from Moscow,

Yuri Generalov,

> body {margin: 0}
> This resulted in the following: the majority of browsers which
> handle CSS properly, display no margin. But for example Opera
> still displays a margin of, I think, 10 pixels

That's because you have to use padding: 0; in Opera (this is arguably more correct).
Received on Friday, 17 August 2001 06:35:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:31 UTC