ONLINEPICTUREPROOFING.COM

content - www.onlinepictureproofing.com

Menu


course, edit an item after its in the Library, but it may not look just as it will on a Web page. For example, Library items dont include <BODY> tags


when they are saved in the Library, so link colors display as default blue when viewed in the library, even if the link colors have been changed to purple in all the pages in a site. Creating a Library item To create a Library item that you can use on multiple pages on your site, follow these steps: 1. Open any existing file that has images, text, or other elements on the page that you want to save as a Library item. Alternatively, you can create a new page and insert only the element you want to save to the library. 2. From this page, select an element or collection of elements that you want to save as a Library item, such as the row of images used for your site navigation. 3. Choose Modify?Library?Add Object to Library. The Assets tab of the Files panel opens and displays the Library. Your new Library item displays as "Untitled." Chapter 4: Coordinating Your Design Work 105 4. Name the element as you would name any file in the Finder on a Mac or in Explorer on a PC. When you name a Library item, you automatically save it to the Library. You can then easily apply the item to any new or existing page in your site. The Library section of the Assets panel lists all Library items, as shown in Figure 4-12. Adding a Library item to a page You can easily add elements from the Library to your pages by simply dragging them from the Assets panel to the page. When you add a Library item to a page, the content is inserted into the document and a relationship is established between the content on the page and the item in the library. This is important as it enables you to edit the Library item later and apply the changes to all pages where the item appears, but it also means that you can not edit the item on the page where it is inserted. You must edit Library items from within the Library, as you see in the following section. To add a Library item to a page, follow these steps: 1. Create a new document in Dreamweaver or open any existing file. 2. From the Files panel, choose the Assets tab and then select the Library icon. Figure 4-12: The Assets panel displays all Library items, and you can use drag and drop to save and insert Library items to and from pages. 106 Part II: Looking Like a Million (Even on a Budget) The Library opens in the Assets panel (refer to Figure 4-12). 3. Drag an item from the Library to the Document window. Alternatively, you can select an item in the Library and click the Insert button. The item automatically appears on the page. After you insert a Library