Style Sheets
  Home arrow Style Sheets arrow Page 3 - Cross Browser Issues: CSS Hacks, Understan...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Cross Browser Issues: CSS Hacks, Understanding Compatibility
By: Jennifer Sullivan Cassidy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2006-01-03

    Table of Contents:
  • Cross Browser Issues: CSS Hacks, Understanding Compatibility
  • Know the Browsers
  • Know More Browsers, and Differences
  • How to Handle Differences
  • Another CSS Solution

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Cross Browser Issues: CSS Hacks, Understanding Compatibility - Know More Browsers, and Differences


    (Page 3 of 5 )

    Netscape 6 and up

    It has been said that Netscape 6 has the best CSS support on the web, and only Mozilla browsers (initially derived from Netscape Navigator 4) have fewer CSS bugs.  While I’m not sure I’m qualified to agree or disagree with this statement, what I do know is there is a big difference in the ways that Netscape renders CSS than it did when CSS first became standardized.  Now Netscape is essentially synonymous with Mozilla browsers.  The ironic part is that Netscape initially tried to introduce a different type of style sheet in JavaScript in order to avoid CSS compliancy altogether.

    Internet Explorer 5 and up

    There was such a huge improvement in CSS support for Internet Explorer when Microsoft updated IE3 to IE4 that to date, it is still the largest browser upgrade for IE.  Still, newer versions of IE have several issues, many of which were solved in version 6 for Windows and 5.5 for Mac.  But because IE 5 is still one of the most popular versions of a web browser available, much consideration must be made for it with regards to CSS 2.1, even if it can behave oddly regarding your CSS.

    However, even IE6 for Windows is buggy when it comes to margins of floated elements: it doubles them.  There are other bugs like duplicate text in multiple floats, oversized content boxes, and several others.  While there is no way we could cover every possible bug or fix in these two articles, we’ll look a an explanation as to what makes browsers different with regards to CSS compatibility, and a few fixes out there.

    Why are they so different?

    The answer to this question goes back to CSS not having standards adopted by all the browser vendors.  If you know anything about CSS, you probably know a little of the history concerning it.  What’s important to understand that Internet Explorer is used by almost 70% of people, the number of people using non-Microsoft browsers is only about 30%, even though that number is rising. It seems that Internet Explorer is the one with the most problems in the newer of the browsers with regards to compatibility.  Being able to have your site look the same across all the browsers takes a bit of practice and skill.

    The biggest problem with IE is that it tries to assume what to do, instead of following your CSS instructions step by step, as well as not supporting many of the CSS 2.1 standards that Netscape and Mozilla browsers do.  W3Schools.com has a pretty good chart that shows which browsers support certain CSS commands, and which browsers do not.  It will also list which version of CSS that browser supports.  However, the chart only lists a few browsers, like IE, Firefox, and Netscape, but this is based upon the assumption that all other browsers are derived in some form or another from these browsers.

    More Style Sheets Articles
    More By Jennifer Sullivan Cassidy


       · Thanks for the heads up! Even though I have been developing for a while, for some...
       · This article has several major flaws. #1 - The claim that special care should...
       · The easiest way to handle CSS bugs in IE is with separate stylesheet.
       · I might point out that what it says is that it is something you could do. Honestly,...
       · Oh, and by the way: the link you posted says that their information is outdated...
     

    STYLE SHEETS ARTICLES

    - Creating Hybrid Web Page Layouts with Negati...
    - Creating Three-Column Web Page Layous with N...
    - Swapping Column Positions in Web Page Layout...
    - Creating Web Page Layouts with Negative Marg...
    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT