• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Modifying a Table

After you create a table, you may find it is too large or too small, or you may need to add columns and rows. You can adjust these table properties easily.

In the lodging.html document, move the pointer over the vertical table border on the right side of the table. When the pointer changes to a two-headed arrow, drag the column border slightly to the right.

You may have to move the pointer up and down over the border to get this tool to appear.

You have enlarged the table. You can see the new width by selecting the table and looking at the number in the Width text field in the Property inspector. Use caution when dragging border of a table to change its size. Whenever you drag table borders in this way, Dreamweaver automatically assigns and updates widths. Sometimes, this width may not be what you want. In that case, click the Clear Column Widths and Clear Row Heights buttons in the Property inspector.

Click the right cell of the last row of the table (the bottom right cell) and press the Tab key.

If the pointer is in the last cell of a table, pressing the Tab key will cause the insertion point to be place in the leftmost cell of a new row.

In the left cell of the row you just inserted, click and drag to the right to select all the cells in the row. Click the Merge Cells button in the Property inspector.

The six cells now form one long cell that spans six columns. The attributes of the first cell, such as color and alignment, are applied to the merged cell.


You can split cells in the same manner by clicking the Split Cell button in the Property inspector or by choosing Modify > Table > Split Cell. This method returns the number of cells to the original number if you merged them, or it can split a cell into any number of rows or columns.

You can merge any number of cells in one column or any number of cells in one row. You can also merge cells in multiple rows and columns, but the cells to be merged must form a rectangle. You cannot merge cells to create an “L” shape.


To merge cells, you can also choose Modify > Table > Merge Cells. The keyboard shortcuts for merging rows are Option+Command+M (Macintosh) or Ctrl+Alt+M (Windows). Pressing just the M key on the Macintosh will also merge the selected cells.

In the cell you have just merged, type © 2002, Lights of the Coast.

Merging cells gives you many more options for layout. You can merge any number of cells as long as they make up a rectangular selection.


If you need to delete a row, click the row and then choose Modify > Table > Delete Row. You can also Control-click (Macintosh) or right-click (Windows) on the table and choose Table > Delete Row from the context menu.

Click the last row of the table and choose Modify > Table > Insert Rows or Columns. In the Insert Rows or Columns dialog box that appears, choose Rows from the Insert options, type 1 in the Number of Rows text field, and choose Above the Selection in the Where options.

The Insert Rows or Columns dialog box allows you to specify whether to insert before or after the current row. When you use this dialog box, you have control over where the new rows or columns are placed, and you can insert any number of rows or columns.


If you choose Modify > Table > Insert Row, the new row is inserted above the current row by default. You can also Control-click (Macintosh) or right-click (Windows) the row above and choose Table > Insert Rows or Columns from the context menu.

This new row you have inserted acts as a spacer between the copyright and the information about the lighthouses above it. Giving each section or block of information on your page a little space helps the viewer to differentiate between the text on the page—it is difficult to read information when there is a lot of text that all runs together.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint