Adding and Removing Cells

Even after you insert a table into a web page, you can add and subtract rows and columns. The text or images in the columns move right or down to accommodate their new next-door neighbors.

Adding One Row or Column

To add a single row to the table, you can use any of these approaches:

  • Click inside a cell. On the Insert panel’s Layout category, click the Insert Row Above button (see Figure 7-9) to add a row above the current row. Click the Insert Row Below button to add a row below the current row.

  • Click inside a cell. Choose Modify→Table→Insert Row, or press Ctrl+M (⌘-M), to insert a new row of cells above the current row. Alternatively, you can right-click (Control-click) a cell, and then, from the shortcut menu, choose Table→Insert Row.

  • To add a new row at the end of a table, click inside the last cell in the table, and then press Tab.

The new rows inherit all the properties (except width) of the row you originally clicked.

To add a single column of cells:

  • Click inside a cell. On the Insert bar’s Layout tab, click the “Insert Column to the Left” button (see Figure 7-9) to add a column to the left of the current column. Click the “Insert Column to the Right” button to add a column to the right of the current column.

  • Click inside a cell, and then choose Modify→Table→Insert Column.

  • Click inside a cell, and then press Ctrl+Shift+A (⌘-Shift-A).

  • Right-click (Control-click) a cell, and then, from the shortcut menu that appears, choose Table→Insert Column.

In each case, a ...

Get Dreamweaver CS5: The Missing Manual now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.