Add Images
Note: Images, tables, text and combinations of all 3, should fit within the horizontal space available in each column. Wide images, wide tables, and longcontinuoustextwithnobreaks, can cause the central content to be pushed out into the background area.
Here are the maximum widths for each column size:
- All pages with left navigation: LeftColumn = 174px (rule to rule)
- Standard 2-column pages: MainColumn = 530px (active area)
- Standard 1-column pages (rare): MainColumn = 714px (active area)
Step 1: Add a new image to the site
- You will need to have a sample image on your computer. The .jpg and .gif image formats are the only universally-recognized formats in the browser. Here's an image you can download now to your desktop. In your browser, right-click (Ctrl-click on Mac) on the link and find the command closest to "Download Image" or "Save Image to Disk"
- On your computer's desktop, find the "arches.jpg" file you downloaded a moment ago; Edit > Copy or Edit > Cut
- Find and open your site's local folder, then find and open the "images" folder
- Edit > Paste to copy the image into this folder
- Switch to Dreamweaver
- Find and open the root/images folder, then find and select "arches.jpg"
- Use the menu Site > Put
- The image is now live on the server and can be added to pages
Step 2: Add image to page
- In your browser, find the page where you want to place the image; if you completed the tutorials for New Topic through Working With Left Navigation, use use your My Project home page, /my_project/
- In Dreamweaver, find and open the /my_project/index.html file
- Place your cursor at the beginning of the first paragraph
- With the Common tab showing in the Insert toolbar, click once on the Insert Image button (if you get the button menu, select "Image")
- Browse within your site's local folder until you find the root/images folder; double-click or select and click OK to enter the folder
- Browse to and select the "arches.jpg" file
- IMPORTANT: Make sure the URL is set "Relative to: Document" at the bottom of the Select Image Source dialog box
- Type into the Image Tag Accessibility Attributes dialog box some text appropriate for the use of this image; this provides alternate text for disabled users
- Images used as links should indicate the destination of the link, e.g. "Stanford University Home"
- Images used as illustrations should describe the image, e.g. "Stanford Arches Image"
- For images without any real content (such as small arrow or other graphics) type in a space character; the text-only reader will skip over such images
- Ignore the long description field, it's optional
- Note how the image is inserted into the flow of text
Step 3: Modify image properties
- The image should be selected (you will see a rule and handles)
- Try scaling the image using the handles, with and without holding the shift key
- Images should be pre-edited to very close to the size needed in the browser before uploading, using an image editor such as Photoshop or Fireworks
- Large images made small on the page still require the user to download the full, large image file
- You can scale .jpg images up or down a little; all .gif images scale very poorly
- Click the image size reset button in the Properties Inspector
- Change the Align property to "Right"; note how the layout changes
- Add a 5 (for 5 pixels) to both the V Space and H Space fields in the Properties Inspector to add a margin around the image
Step 4: Make the image a link
- The image should be selected
- Find the Link field in the Properties Inspector and click your cursor into it
- Type or paste (you must right/ctrl-click or use the keyboard shortcut, Ctrl/Alt-v) the full URL of the Stanford Home Page - http://www.stanford.edu/
- Look for the Border field in the Properties Inspector and enter 0
- The Alt field should contain text describing the link, e.g. "Stanford Home Page"
- If desired, set the Target to "_blank" in the Properties Inspector; this makes the link appear in a new browser window
Step 5: Finish up
- Use the File menu > Save command
- Use the Site menu > Put command
- Switch to a browser, view and/or reload the home page to see your new image
« Previous | Home | Next »


