Previous: Dynamic Styles and Classes

Summary

In this chapter, you learned how JavaScript and CSS can come together into something that some people call Dynamic HTML. When Netscape and Internet Explorer released their 4.0-level browsers, Dynamic HTML was a buzzword on every Web developer's lips. It turned out that a great number of both browsers' implementations were incompatible with one another, making aspects of DHTML difficult to adopt.

With both browser companies now offering 5.x- and 6.x-level browser versions, that landscape has changed somewhat. Both browsers support a common overlap of CSS, both for appearance styles and for positioning elements on the page. Using those styles, it's possible to do a great deal of Dynamic HTML—programming style sheets—that will work cross-browser.

This chapter started by introducing the CSSP properties and techniques, and then showed you how to script CSSP in each of the major browsers. Also shown was how scripts can be written that take into account all CSS-compatible versions of the major browsers, including the problematic Netscape 4.x browsers.

The chapter ended with a look at scripting CSS1-level properties, including changing individual properties and changing the CSS class with which a particular property is associated.

Previous: Dynamic Styles and Classes