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

Chapter 11. Stylin' with Style Sheets > Applying a Style Class

Applying a Style Class

Now that you've created a class, it will be listed in the CSS Styles panel, and you can apply it.

To apply a class:

1.
On your page, select the word "new" (Figure 11.26).

Figure 11.26. Select the text to which you want to apply the class. Dreamweaver will automatically add a <span> tag to your selection.


2.
On the CSS Styles panel, click on the name of your style, .greenItal (Figure 11.27), or select Text > Style > .GreenItal from the document window menu bar. Your text will become green and italic (Figure 11.28).

Figure 11.27. As you add classes to the style sheet, they will appear in the CSS Styles panel. Click on the name of your style to apply it.


Figure 11.28. I applied the .greenItal style to the selection.


3.
Repeat with the word "shiny."


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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