Accessibility

Table of Contents

Creating your first website – Part 2: Creating the page layout

Insert tables

Next you'll add a table that will hold text, graphics, and Adobe Flash assets.

  1. Click once on the page to ensure place the insertion point is in the upper-left corner of the page (see Figure 3).

    Placing the insertion point in the upper-left corner of the page.

    Figure 3. Placing the insertion point in the upper-left corner of the page

  2. Select Insert > Table.
  3. In the Insert Table dialog box, do the following (see Figure 4):

    • Enter 3 in the Rows text box.
    • Enter 1 in the Columns text box.
    • Enter 700 in the Table Width text box.
    • Select Pixels from the Table Width pop-up menu.
    • Enter 0 in the Border Thickness text box.
    • Enter 0 in the Cell Padding text box.
    • Enter 0 in the Cell Spacing text box.

    Entering the initial table properties

    Figure 4. Entering the initial table properties

  4. Click OK.

    A table with three rows and one column appears in your document (see Figure 5). The table is 700 pixels wide with no border, cell padding, or cell spacing.

    A table with three rows and one column appears in your document

    Figure 5. A table with three rows and one column appears in your document

    Note: Tables are a powerful tool for presenting tabular data and for laying out text and graphics on an HTML page. A table consists of one or more rows; each row consists of one or more cells. When you create multiple rows with multiple cells, the cells form columns. Technically, a cell is a division within a horizontal row, and a column is the vertical accumulation of those cell divisions.

    Dreamweaver displays the table width and the width for each table column in the Table selector (indicated by green lines) when the table is selected or when the insertion point is in the table (see Figure 6).

    Table width and column width in Dreamweaver

    Figure 6. Table width and column width in Dreamweaver

    Next to the widths are arrows for the table header menu and the column header menus. You can use the menus for quick access to common table-related commands. You can also enable or disable the display of the widths and menus by selecting View > Visual Aids > Table Widths.

    Tables can have borders, and the cells of a table can have padding, spacing, or both. Cell padding refers to the number of pixels between the cell's content and the cell's boundaries. Cell spacing refers to the number of pixels between adjacent table cells.

    If you don't explicitly assign values for cell padding and cell spacing, most browsers display the table as if cell padding were set to 1 and cell spacing were set to 2. If you want to ensure that browsers display the table with no padding or spacing, set cell padding and cell spacing to 0.

    For more information about tables, see Presenting content with tables in the Dreamweaver Help.

  5. Click once to the right of the table to deselect it.
  6. Select Insert > Table to insert another table.
  7. In the Insert Table dialog box, do the following for the second table:

    • Enter 1 in the Rows text box.
    • Enter 3 in the Columns text box.
    • Enter 700 in the Table Width text box.
    • Select Pixels from the Table Width pop-up menu.
    • Enter 0 in the Border Thickness text box.
    • Enter 0 in the Cell Padding text box.
    • Enter 0 in the Cell Spacing text box.
  8. Click OK. A second table with one row and three columns appears below your first table (see Figure 7).

    A second table with one row and three columns appears below your first table.

    Figure 7. A second table with one row and three columns appears below your first table.

  9. Click to the right of the table to deselect it.
  10. Insert a third table by selecting Insert > Table and entering the following values in the Insert Table dialog box:
    • Enter 1 in the Rows text box.
    • Enter 1 in the Columns text box.
    • Enter 700 in the Table Width text box.
    • Select Pixels from the Table Width pop-up menu.
    • Enter 0 in the Border Thickness text box.
    • Enter 0 in the Cell Padding text box.
    • Enter 0 in the Cell Spacing text box.
  11. Click OK. A third table, with one row and one column, appears below your second table (see Figure 8).

    A third table, with one row and one column, appears below your second table.

    Figure 8. A third table, with one row and one column, appears below your second table.

  12. Click to the right of the table to deselect it. Your page should now look like Figure 9.

    How the table looks after deselecting it

    Figure 9. How the table looks after deselecting it

    Note: You may see the Table selector (indicated by green lines) after you insert a table. You can always make the Table selector disappear by clicking outside the table. You can also disable the Table selector by de-selecting View > Visual Aids > Table Widths.