Posts Tagged 'Dreamweaver'

The Many Benefits of CSS (Cascading Style Sheets)

If you are a full-time web developer, you probably already use CSS (Cascading Style Sheets) to format and layout web pages. However, if your only design experience is creating and maintaining your company’s web site, you are probably still working with HTML. It’s time to think about changing.

CSS works with HTML to improve the appearance of your web pages. Styles can be applied to headings, images, tables, text, or any other object on a web page. If you work with styles in Microsoft Word, the concept is basically the same.

Do you remember what the Web was like back in 1994 when we were all amazed by the Louvre web site? (Remember the Mosaic browser?) Wow, we could actually see pictures on our computer that were in France! This was HTML 1.0 with no support for tables, so all Web pages were one column. Boring! Then tables came along, and all of a sudden, web pages could have more than one column, paving the way for more complicated layouts. A revolution! CSS represents another sea change in web design.

Using Code Snippets in Dreamweaver

A snippet is a chunk of code that you can store in Dreamweaver to reuse later. Snippets can include HTML, JavaScript, ASP, JSP, etc. For example, let’s say you need to add several graphics to your Web site, and each graphic is in a two-cell table with the graphic in the upper cell and the caption in the lower cell. Since you will use the same table (with different content) several places on the site, there is no need to create the table each time. Simply create it once, save it as a snippet, and reuse it whenever you need to.

Dreamweaver also contains some predefined snippets that you can use as a starting point. For example, one snippet of JavaScript lets you add a Close button to any Pop-up windows you include on your Web site. This snippet obviates the need to create the code for each window.

Dreamweaver also includes snippets of code that lets you add a Browse for File… button, a variety of formatted tables, drop-down menus, a Print button, navigation aids such as breadcrumb links, and many more options.

Are Your Web Images Accessible to Users with Visual Disabilities?

Not everyone who visits your Web site can see the page. Some people with visual disabilities use screen readers to have the page read to them. For this reason, it’s important that you include alternate text with each of your images.

To add alternate text to your images:

  1. Select the image.
  2. Click into the Alt Text field in the Property Inspector and type a phrase that identifies or describes the image.

If you are sufficiently compulsive, you will remember to do this every time you add an image to a page.

If you tend to slack off when it comes to details like this, you can set a preference in Dreamweaver that forces you to add alternate text every time you add an image to a page.

To turn on the Image Accessibility prompt:

  1. Select Edit | Preferences.
  2. Select Accessibility from the Category List.
  3. Add a check to the Images checkbox in the Show attributes when inserting list.
  4. Click OK.
  5. When you add an image to a page, Dreamweaver will display the following prompt:
  6. Image Accessibility Prompt

    The screen reader reads the information you enter in the Alternate text field. You should limit your entry to around 50 characters. For longer descriptions, consider providing a link, in the Long description field, to a file that gives more information about the image.

Link to a Named Anchor on a Web Page

Linking to a named anchor lets you link to a specific place on a page.

Linking to a named anchor requires two steps: (1) Create the anchor. (2) Link to it.

To create an anchor on a page:

  1. Click into the page where you want the anchor to appear.
  2. From the Common category on the Insert bar, click the Named Anchor button (or select Insert | Named Anchor from the menus):
  3. Named Anchor

  4. Dreamweaver will place an anchor icon in the document. (The icon will not be visible when the page is viewed in a browser.)

To link to a named anchor on the same page:

  1. Select text or an image.
  2. Click into the Link field in the Property Inspector and type the name of the anchor, preceded by the pound sign (#). The sample below links to the heading3 anchor on the same page:
  3. Link to a Named Anchor on the Same Page

To link to a named anchor on a different page:

  1. Select text or an image.
  2. Click into the Link field in the Property Inspector and type the name of the file followed by a pound sign (#) and the named anchor. The sample below links to the heading3 anchor on the products1.htm page:
  3. Link to a Named Anchor on Another Page

Editing Images with Photoshop from within Dreamweaver

If you like to edit images on your Web site with Photoshop, it’s easy to make Dreamweaver use it as the default image editor.

First, you have to select Photoshop as your primary image editor for jpgs (and gifs, etc.). To do so:

  1. Select Edit | Preferences.
  2. Edit Preferences

  3. From the Category list, select File Types/Editors.
  4. Select the file extensions you want to associate with PhotoShop.
  5. In the Editors section , click the button with the Plus sign (+).
  6. Dreamweaver will open the Program Files folder.
  7. Double-click the Adobe folder.
  8. Double-click the Photoshop folder.
  9. Select the Photoshop executable (Photshop.exe).
  10. Click the Open button.
  11. Dreamweaver will add Photoshop to the list of editors.
  12. Select Photoshop in the list and click the Make Primary button.

When you want to edit an image in Photoshop from a document in Dreamweaver:

  1. Select the image.
  2. Click the Edit Images button in the Property Inspector.
  3. Edit Images Button