Netscape 4.x CSS woes.

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Netscape 4.x CSS woes.

Postby Andrew T. » Thu 29 Jan, 2004 9:12 pm

I've decided to start on the ambitious task of making my web pages standards compliant, and to use cascading style sheets.
Netscape Navigator/Communicator 4.x, needless to say, are awful in the regard of the latter point. NS 4.x's CSS implementation was adopted while the standard was in its early, incomplete stages, and improved little.

I set up a sample page, which utilizes basic CSS and is valid HTML 4.01 Transitional (as opposed to the old version of the page, which was riddled with errors as bad as a missing <BODY> tag!). Netscape Communicator 4.79 displays it as its maker intended above the "Browsers/Systems" table, and black on black below it. Why is that? Removing the table resulted in properly colored and formatted text all the way to the bottom.
My first attempt at style sheets themselves can be viewed here.

It is unreasonable to expect an antiquated browser such as Netscape 4.x to display pages exactly as they would in Mozilla, but my question is, what is the most logical way to make this page legible (if nothing else) in Netscape 4.x while maintaining the CSS formatting and dark-colored background in more modern browsers?
UserAgent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.6) Gecko/20040113
User avatar
Andrew T.
diamond member
diamond member
 
Posts: 1228
Joined: Fri 14 Mar, 2003 11:37 pm
Location: Somewhere beyond the sea

Re: Netscape 4.x CSS woes.

Postby Antony » Thu 29 Jan, 2004 9:21 pm

Netscape Communicator was released before the standards formally released.
Andrew T. wrote:It is unreasonable to expect an antiquated browser such as Netscape 4.x to display pages exactly as they would in Mozilla, but my question is, what is the most logical way to make this page legible (if nothing else) in Netscape 4.x while maintaining the CSS formatting and dark-colored background in more modern browsers?
You will need to apply a number of tricks. Danny Goodman's Dynamic HTML - The definitive reference is a must book for this case.

Entire SillyDog701 website and specially SillyDog701 Message Centre has been carefully coded to look good in modern browsers, and legible and functioning to a reasonable degree in Communicator. Message Centre and Communicator issues.
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85.7 (KHTML, like Gecko) Safari/85.6
User avatar
Antony
diamond member
diamond member
 
Posts: 14510
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Andrew T. » Sun 01 Feb, 2004 6:09 pm

Thank you for your advice. That book sounds like a valuable reference.
In any case, today I finished fixing and CSS'ing my web pages. While getting the pages up to spec, I decided to use two sets of style sheets: One for modern browsers like Mozilla, and a more primitive one for Netscape 4. Also, I stumbled across some interesting suggestions on this web page.
UserAgent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.6) Gecko/20040113
User avatar
Andrew T.
diamond member
diamond member
 
Posts: 1228
Joined: Fri 14 Mar, 2003 11:37 pm
Location: Somewhere beyond the sea


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]