MYONLINEPROOFING.COM

proof of service by fax - www.myonlineproofing.com

Menu


display that is similar to JPG). In addition, PNG compresses 5%25% percent better than GIF, making this an attractive format for web


developers. Of course the downside to using PNG on the web is that browser supportor more specifically down-level browser supportfor PNG is simply not up to par. Even the newer versions of Internet Explorer for Windows don't support the transparency features in PNG. As a rule of thumb, if you're working with flat, solid images, use GIF. If however, you're working with images with a lot of color gradation like photographs, use JPEG. For more information on links to resources on image formats, please reference Appendix C, "General Resources." Inserting Images into a Dreamweaver Document The traditional Dreamweaver method of inserting an image is to use the browse-to-file method in which you select Insert, Image, browse to your file, and click Open to insert the image in the page. However, Dreamweaver also features a unique drag-and-drop method of inserting images directly from the File list. Before we jump ahead of ourselves, however, let's review the process of inserting an image by browsing to the image file using the Select Image Source dialog. To use this method, follow these steps: 1. Start by placing your cursor at the top of the page (or where ever you want the image to appear). 2. Choose the Image option from the Insert menu or select the Image icon from the Images submenu of the Common category in the Insert bar. Either method opens the Select Image Source dialog. 3. Browse for the file header.gif located in the Images folder of the defined Dorknozzle site. As you can see in Figure 3.32, the filename, an image preview, and dimensions in terms of size and download time based on file size are displayed in the dialog. Figure 3.32. Browse to header.gif so that you can see the filename and the image preview. [View full size image] 4. Aside from simple browsing and previewing, the Select Image Source dialog also includes the ability to browse by file type, to enable and disable image previewing, and to set the file path method (document or site root relative) for the file. For our example, simply click OK. The image is inserted at the top of the page and blends in nicely with our background image. You might have to remove extra line breaks between the image and the date stamp (place your cursor just before the date stamp and press Backspace on your keyboard) to get your design to look like Figure 3.33. Figure 3.33. The inserted header image blends in nicely with our background image. [View full size image]   A second option for inserting images is the drag-and-drop-from-the-File-list-panel method. By far the simplest method, you can add an image to your page by simply selecting the image from the Site Files panel and dragging it into the web page. Try this method on your own by removing the current headings (About Dorknozzle and Company Events) from the page and dragging the two subheader images (subheader_about.gif and subheader_companyevents.gif) onto the page to replace the headings. The result should resemble Figure 3.34. Figure 3.34. Insert the two subheading images by dragging them from the File list panel onto the web page. [View full size image]   Formatting Images within a Document Of course, like every other element that can be inserted into your web pages, images allow you to format numerous properties directly from the Properties