Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Netscape 4.78 displays empty page


DrOliver - 7:20 am on Jul 30, 2003 (gmt 0)


That's the way I do it:

<head>
<link rel....>
with styles even Netscape 4 can't screw up (font colors and the like)
<style type="text/css">
@import url(/styles/sophisticated-styles.css)
</style>
</head>

and if you like, you could add a message like so:

<body>
<div id="hidden">This site will work and look better in a browser that supports web standards, but it is accessible to any browser or Internet device. <a href="/explain.html">What does that mean?</a></div>

This sentence comes from A List Apart. You can of course use other words to explain. Most users wouldn't know what "web standards" are, anyway.

The ID "hidden" will be in the imported stylesheet, like so:
div#hidden{display:none;}

That way, only browsers that can not handle the @import will display the div. The trick is, browsers who can not handle @import cannot handle sophisticated CSS too. Netscape 4 is one of those browsers.


Thread source:: http://www.webmasterworld.com/html/5785.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com