XML technologies / CSS / Advanced websites with CSS / Validation and backward compatibility / Making a CSS page backward-compatible / Bugs in newer browsers
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Even if you can safely ignore old browsers, handling CSS bugs and inconsistencies is unavoidable. Those who learned table layouts also learned tricks for making nested tables behave. With CSS, we likewise need tricks for browser incompatibilities.
Internet Explorer 6 is currently most popular, but older than the latest Firefox, Safari and Opera and less complete in CSS support. Versions 5 and 5.5 remain widely used and add difficulties. Pages may look excellent in current Safari or Firefox while causing many IE problems. Other browsers are not immune to odd bugs either.
A different layout approach can sometimes avoid a bug. CSS often offers several routes to the same visual result. A small change working across all target browsers is better than keeping the original approach with many hacks for one browser. Search Google for a specific problem: information and often a simple solution are likely available.
If all else fails, a CSS hack or filter can provide browser-specific rules. Treat hacks as a last resort and use them sparingly.
Develop with a browser supporting CSS as fully as possible. I usually use Firefox for its short release cycles and useful extensions such as the Web Developers Toolbar. A standards-compliant browser should produce a working, compliant layout. Then test less compliant browsers. If rendering problems arise, you know your foundation is solid: valid CSS rendering correctly in a nearly compliant browser. IE bugs are well documented; research and trying a few techniques will probably find an answer.
This book follows that process: develop layouts in Firefox, then test other browsers. When problems appear, we examine CSS hacks and browser differences.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top