XML technologies / CSS / CSS Cookbook / Hacks, workarounds and debugging

(Excerpt from “CSS Kochbuch” by Christopher Schmitt)

Introduction

Web designers have long used hacks and temporary solutions (workarounds) to get around programming errors and limitations in some browsers. These techniques proliferated in the mid-1990s, including one-pixel GIFs, font tags and nested tables, to name just a few. Although the CSS 2 specification became a Recommendation back in 1998, browser vendors only recently fully integrated the standard into their products. Because of this delay, many people still use browsers with inadequate CSS support.

To compensate for poor or incorrect CSS support, web developers are therefore still sometimes forced to use hacks and workarounds to implement their page designs successfully.

Although most problems have now been fixed in modern browsers, several reasons remain for continuing to use hacks and workarounds to present content correctly to users.

Unlike web developers, ordinary users do not automatically update their browsers when new versions appear. They prefer to keep the program already installed on their computer: after all, it works. A new browser becomes relevant only when they buy a new computer. Another factor is the IT departments of large companies, which lock down their systems to prevent employees from using their own programs.

This chapter provides techniques for making your designs look good even in browsers with faulty CSS support. They include solutions for Internet Explorer 5.x for Windows and its distinctive interpretation of the box model, and much more.

  

  

 

 

 

back to top