In the previous chapters we've looked at ways to change specific CSS attributes for specific effects, such as showing and hiding objects and moving objects across the screen. However, you can make changes to any of the CSS properties available. As a result, you can dynamically control your CSS in the browser window by making changes to styles, with these changes becoming visible immediatelyusing dynamic CSS.
For many years, the full power of dynamic CSS techniques was stymied by the fact that very few of them worked in Netscape Navigator 4. However, now that Netscape 4 makes up less than 1 percent of the browser market, a whole new horizon of dynamic techniques is open to Web designers (unless, of course, you know that a significant portion of your likely audience is using Netscape 4).
In this chapter, you'll learn how to treat style sheets as objects to accomplish the following: