May 8, 2002
Untitled
After reading Tommy William’s Mozilla 0.9.9, XHTML, CSS, and Madness, I thought to myself… wow, does that ever sound familiar. Although I’m not working with XHTML markup, the inexplicable goofiness that Mozilla displays while attempting to render the style sheets for a validated HTML 4.01 transitional document is frighteningly similar. Basically, it doesn’t work on but one of the servers I’m using. If I remove the DOCTYPE in the source file or change the DOCTYPE to HTML 4.0 Transitional, the CSS works in Mozilla on this particular server. Of course, the page renders perfectly on every other server I’ve tried, using Mozilla or otherwise. Tired of smacking my own head against the wall trying to figure this out, I naturally tried Tommy’s suggestion of adding the appropriate content type declaration to the server’s config file. Then using telnet, I checked that the HTTP headers were changed and coming back correctly from the server in question, as he did. After clearing the browser’s cache, everything was appearing as it should — finally. Now, just don’t get me started on what Mozilla does to the vertical cell spacing in all my 4.01 transitional documents. Again, switching to a different DOCTYPE fixes the problem. But that’s not the point, is it now? Via diveintomark
This item was posted by
.Categories:
Leave a comment or send a trackback from your own site.