This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.

Tips

Excluding Netscape from external CSS

In response to a ciwas post describing errant NN4 behaviour in rendering a CSS-enhanced input button, Liam Quinn offered the following suggestion:

 I think the best approach to avoiding this Netscape bug is to exploit another Netscapebug:put your style sheet in an external file LINKed (or in a STYLE element)with MEDIA="screen, projection".Due to a bug, Netscape 4.x will ignore any LINK orSTYLE that uses a MEDIA value other than "screen". A list of MEDIA values is at:<http://www.htmlhelp.com/reference/css/style-html.html>.For example:<HEAD><TITLE>Test</TITLE><STYLE TYPE="text/css" MEDIA="screen, projection"><!-- input { background-color: rgb(0,0,0); color: rgb(0,255,0); font-weight: bold; border: medium ridge rgb(0,255,0)}--></STYLE></HEAD><BODY><FORM …><INPUT TYPE=submit VALUE="Submit"></FORM>--Liam QuinnWeb Design GroupEnhanced Designs, Web Site Development
 
 http://www.htmlhelp.com/
 
 http://enhanced-designs.com/
 

Please note that you only need to exclude those specific elements which Netscape mangles. [Stop, gordon, I hear you laughing ;-)] You can take real advantage of the 'cascading' part of CSS to allow acceptably rendered CSS in NN4.

Steve Knoblock's explanation of importing style sheets is an excellent resource to use for this purpose.

Mark Fuller