Discussion Locked

XHTML META corrupts CSS on NN4/Mac ?!

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Trying to push a few of my pages to validate under the latest XHTML standards, I took the advice of the HTML validator at the w3c site to add the following META tag to the head section of each page:

For some reason, however, this seemed to disturb the CSS formatting for font-family display in Netscape 4.7 for the Mac, as all the fonts rendered as Times Roman instead of the "Verdana,Arial,Helvetica,sans-serif" that I'd coded for. This didn't happen in any other browser that I tested (MSIE/Win, Netscape 4/Win, or MSIE/Mac).

When I deleted this META tag and made no other changes, the pages displayed in sans-serif as I'd coded, although they will no longer validateat the w3c validator that way.

Anyone know a fix for this that will let the page validate?

3 replies

by jay eckles

Have you tried a different character set (I assume any charset is legal for XHTML, but I don't know, so you should check). Other reasonable choices other than utf-8 are us-ascii and iso-8859-1 (Latin 1).

Of course, the http-equiv="Content-type" meta tag seems TOTALLY unnecessary, but if it's part of the markup spec, then I guess you include it.

Good luck.

Jay Eckles
www.jayeckles.com

by cres

Thanks Jay,

The iso-8859-1 validated AND worked for NN 4.7/Mac when I tried it. Some kind of meta tag speccing the character encoding now seems to be required to validate XHTML at the w3 site due to some recent changes they've made to their validator.

This discussion is closed to new replies.