<<< Back to Page 2
Working with Lists
Lists are an easy way to organize content on your Web page. Dreamweaver supports three types of lists:
- Numbered lists or Ordered lists, for lists with items that need to be in a particular order (Figure 4.29). List items are numbered and indented from the left margin. If you add or remove items from the numbered list, it automatically renumbers.
- Bulleted lists or Unordered, for lists of items in no particular order (Figure 4.30).
- Definition lists, where each item has an indented subitem (Figure 4.31).
To create a list:
- Type the items for your list into the window. After typing each item, press Enter (Return).
- Select the items in the list.
Choose Text > List, then choose Unordered List, Ordered List, or Definition List from the submenu.
or
Click either the Unordered List or Ordered List button in the Property Inspector.
or
Click one of three buttons in the Text tab of the Insert Bar: ul for Unordered List, ol for Ordered List, or dl for Definition List.
The text changes to the kind of list you chose.
Setting List Properties
You can change numbered list and bulleted list properties in Dreamweaver. Choose between five types of numbering, as shown in Table 4.3. For bulleted lists, you can choose either a round bullet (the default) or a square bullet. There are no properties to set for a definition list.
Table 4.3. List-Numbering Options
|
List Name |
Example |
|
Number |
1, 2, 3, 4 ... |
|
Roman Small |
i, ii, iii, iv ... |
|
Roman Large |
I, II, III, IV ... |
|
Alphabet Small |
a, b, c, d ... |
|
Alphabet Large |
A, B, C, D ... |
To set list properties:
- Click in the list you want to change to place the insertion point.
Choose Text > List > Properties.
The List Properties dialog appears (Figure 4.32).
- Do one or more of the following:
- In the List type pop-up menu, select Bulleted List, Numbered List, or Directory List ("definition list" is called "Directory List" in this dialog for some reason).
- In the Style pop-up menu, select one of the Bulleted List or Numbered List styles.
- Use the Start count text box to set the value for the first item in the numbered list.
- Click OK.
Nesting Lists
You can indent lists within lists to create nested lists. Because nested lists do not have to be of the same type, you can create, for example, a numbered list with an indented bulleted list, and you can have multiple levels of nested lists within one overall list (Figure 4.33).
To create a nested list:
- Click the end of a line within an existing list to place the insertion point.
Press Enter (Return).
Dreamweaver creates another line of the list.
Press Tab.
Dreamweaver creates a new indented sublist of the same type as the parent list. For example, if the parent list is a numbered list, the new sublist will also be a numbered list.
- (Optional) If you want the sublist to be a different type of list than the parent list, click the Numbered List or Bulleted List button in the Property Inspector.
- Type the list item.
Press Enter (Return).
Dreamweaver creates a new sublist item.
- To return to the original list, use the up or down arrow keys to move the insertion point into one of the items in the original list, or click to place the insertion point where you want it.
Inserting Special Characters
You can add special characters, such as the Euro, copyright, or trademark symbol, to your page in Dreamweaver without having to remember their bizarre HTML equivalents or odd keyboard combinations. In Dreamweaver, relief is just a menu choice away.
To insert a special character:
- Click in the page to place the insertion point where you want the special character to appear.
In the Text tab of the Insert Bar, choose the character you want from the Special Characters pop-up menu (Figure 4.34).
Figure 4.34 Insert unusual characters from the Special Characters pop-up menu in the Text tab of the Insert Bar.
or
Choose Insert > HTML > Special Characters, then choose the special character you want from the submenu.
or
If the character you want doesn't appear in the menu, choose Other Characters from the pop-up menu in the Insert Bar, or choose Other from the Insert > HTML > Special Characters submenu. The Insert Other Character dialog appears (Figure 4.35).
Click the character you want to use, then click OK to close the dialog.
Dreamweaver inserts the special character on your page.
Adding Automatic Dates
Dreamweaver can insert the current date and time in a variety of formats into your Web page. You can choose whether or not to add the day of the week.
To insert the current date:
- Click in your page to place the insertion point where you want the date to appear.
Choose Insert > Date.
The Insert Date dialog appears (Figure 4.36).
- Do one or more of the following:
- If you want the name of the day to appear, use the Day format pop-up menu to set the appearance of the day of the week.
- Make a selection from the Date format list.
- If you want the time to appear, choose the 12-hour or 24-hour format from the Time format list.
- Select Update automatically on save, if you want that to happen. This is very useful if you want visitors to your site to know when the page was last updated.
Click OK.
Dreamweaver inserts the date (and any additional items you chose) into your page.
Adding Horizontal Rules
A horizontal rule is a line that runs across the page, creating a division between parts of the document (Figure 4.37). By default, a horizontal rule in Dreamweaver is the width of the page, is 1 pixel high, and has a small drop shadow. You can change these properties if you want.
To insert a horizontal rule:
- Click in the page to place the insertion point where you want the horizontal rule to appear.
Choose Insert > HTML > Horizontal Rule.
A line appears as wide as the page.
To modify a horizontal rule's properties:
Click the horizontal rule to select it.
The Property Inspector changes to show the Horizontal Rule properties (Figure 4.38).
- Do one or more of the following:
- Type a number in the W (for Width) field, and choose either pixels or % from the pop-up menu. Choosing pixels creates a fixed-width line; choosing % creates a line that expands or contracts depending on the width of the site visitor's browser window.
- In the H (for Height) text box, type a number for the horizontal rule. This height is measured in pixels.
- From the Align pop-up menu, choose Default, Left, Center, or Right. The Left and Right choices are only going to be useful if the width of the horizontal rule is less than the width of the page.
- The Class pop-up menu allows you to apply a CSS style to the horizontal rule.
- If you select the Shading check box, the line appears as an outline, rather than as a solid line.
