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

Hour 23. Using the Library: Reusing Elem... > Using Styles in Library Items

Using Styles in Library Items

When you create a CSS style, Dreamweaver inserts the style definition into the head of the HTML document. A library item does not have a head section, as shown in Figure 23.11. You insert a library item into a web page, and the head of that web page could have styles defined in it. When you know the name of the class that you'd like to apply to the library item, you need to add <span> tags around the item, with the class attribute set to the name of the class, like this:

<span class="greenText">Library Item here</span>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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