Dynamic Styles with Cascading Style Sheets

Similar to CSS positioning, discussed in the preceding section, both Internet Explorer and Navigator have the capability to specify and/or dynamically change the format and style of HTML elements through style sheets and the object model that each browser uses. Navigator 4 can use JavaScript only to specify formatting styles at load time, whereas Internet Explorer and Navigator 6 can establish them at load time and also dynamically change them.

Table 9.1 in Chapter 9 gives a very good listing of the formatting attributes of style sheets. These attributes can be manipulated by scripts running in either Netscape Navigator or Microsoft Internet Explorer, although, like CSS positioning, the object reference ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.