HAL-PC Web Technolgies SIG

Mail List | SIG Leader

CSS & Browsers

HAL-PC Web Technologies SIG

Not all web browsers are created equal nor are any standards compliant. HTML & CSS standards are set by the W3C Organization. The good news is that browsers are getting less proprietary and are better supporting web standards. The bad news is, not all of your visitors will have the latest or most compliant browsers. The W3C has some of the best statistics available on browser usage.

Browser Statistics (July 2001)

< <
Browser Version Jul 00 Oct 00 Jan 01 Apr 01 Jul 01
Internet Explorer 5.x 60% >66%72% 79% 60%
Internet Explorer 4.x 20% 15% 12% 8% 7%
Netscape 4.x14% 13% 10% 7% 5%
Netscape compatible. 1% 1% 1% 3% 4%

Browsers that count for less than 0.5% are not listed.
Source : http://www.thecounter.com/

This means that you can't ignore Netscape users unless you are willing to lose 10% of your visitors. Fortunately there are many resources available to help you make a page that looks good in Netscape as well as in Internet Explorer. One area where browser support differs markedly is in the area of CSS support, another is in how margins are handled.

UPDATED STATS Browser Statistics (2003)

Browser Version Jul 02 Oct 02 Jan 03 Apr 03 Jul 03
Internet Explorer 6.x 39% 45% 52% 57% 59%
Internet Explorer 5.x 51% 46% 39% 36% 34%
Internet Explorer 4.x 2% 2% 1% 1% 1%
Netscape 4.x 3% 2% 1% 1% 1%
Other Netscape compatible 1% 1% 1% 1% 1%
Opera 1%

Browsers that count for less than 0.5% are not listed.

For a simple illustration of how CSS differs in the two major browsers differ I created a simple rollover navigation using nothing but CSS and either absolute positioning or tables. In both browsers the colors for links, active and visited display as intended however in Netscape 4.x the hover effect does not work though Netscape 6 and 7 display it correctly.

Another difference is in how to remove browser margins. Internet Explorer and Netscape 6 use standard margin-top: 0px; margin-left: 0px; margin-bottom: 0px; margin-right: 0px while Netscape 4.x requires marginheight=0 and marginwidth=0 in the body tag.

For a more complete reference on what each browser supports covering CSS 1 (now) somewhat dated now is http://devedge.netscape.com/library/xref/2003/css-support. A more up to date chart with CSS 2 support is at http://www.macedition.com/cb/resources/abridgedcsssupport.html and covers teh following browsers:

  • Windows IE 6
  • MSN for Mac OS
  • X Mac IE 5
  • Gecko (aka Mozilla)
  • Opera 7 (see docs)
  • Safari 1.0, Konqueror, OmniWeb 4.5 (see docs)
  • Omniweb 4.05
  • OmniWeb 4.1 beta 2+ to 4.2 inclusive
  • iCab 2.6

They also have a table of bugs that will crash NN 4.x at http://www.macedition.com/cb/nn4crashers/index.html

For more information on CSS and browser support, work arounds and more I suggest looking at the CSS Discuss List WIKI

Back to Top

About Us | Site Map | Advanced Search | Privacy Policy | Contact Us | ©1999-2006 HAL-PC Web Technologies SIG Leader Cheryl D. Wise