• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Dynamic Techniques: CSS > Changing an Object's Class

Changing an Object's Class

Although being able to add or change an individual definition is great (see the previous section, "Changing a Definition"), doing this for more than one definition at a time is time-consuming. Instead, you need the ability to change multiple definitions at once (Figures 15.3 and 15.4). You can accomplish this task simply by changing the entire CSS class assigned to an object (Code 15.2).

Figure 15.3. Before the words Drink Me are rolled over, the text is very small and black, because its class has been set to copyTiny.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint