W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

HTML 4.0 DTD and styles in HTML 4.0 compatible browsers

From: <joe_harney@smartforce.com>
Date: Fri, 19 Jul 2002 07:32:45 -0400 (EDT)
To: www-validator@w3.org
Message-ID: <OF097F4065.89B6E041-ON80256BFB.003F4268@smartforce.com>

Hi there,
      I'm not sure if this query is stylesheet related or accessibilty
related but anyway here goes....
......In the stylesheet for the project I'm working on I had set the font
sizes in my unified stylesheet to 70%. The fonts appeared consistently well
throughout the site. However when I tried to import the HTML4 dtd using....

                  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

...it caused the fonts to appear a lot smaller (practically unreadable in
fact) on fully HTML4 compatible browsers (e.g IE5 upwards, NS6). In NS4.7x
browsers it seemed that the DTD was ignored and the fonts appeared
normally. I'm just wondering what exactly does the DTD do to the page. Does
it redefine your font sizes or something? To try to fix this in IE5, NS6
etc I had to increase my font sizes from 70% to 100% so they would appear
as they did previous to importing the DTD. However on doing this obviously
the fonts in NS4.7x browsers now appeared a lot larger than normal. Has
anybody had this problem before? Is there any other solution that allows
you to import the DTD and have consistent fonts across all browsers. One
that comes to mind is defining a seperate stylesheet just for NS4.x
browsers, but this seems like a lot of effort to go to in order to satisfy
a WCAG Priority 2 checkpoint. Any queries/help/suggestions are more than
welcome. Mail me @ joe_harney@smartforce.com.


PS One more thing, when I added the doctype to the pages without the URL to
the DTD, everything appeared fine across all browsers. If I just do this am
I still satisfying the WCAG checkpoint?? Or do I need to specifically
reference the DTD? Thanks again - Joe

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to any one or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **
Received on Friday, 19 July 2002 08:26:52 UTC

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