Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > Adobe Dreamweaver

Creating Tables in Dreamweaver CS4

  • Print
  • + Share This
This excerpt, adapted from Adobe Dreamweaver CS4 Classroom in a Book (Peachpit Press, ISBN 0-321-57381-1), tells you why, when, and how to use tables in your site design.
Like this article? We recommend

In the early days of the web, pages were laid out with tables instead of CSS. Many browsing devices interpret tables as what they actually are—rows and columns of data—rather than as a comprehensible page layout. When CSS came along, people came to believe that "tables are bad" because pages should be laid out with CSS. That was a bit of an overreaction. Tables are not good for page layout; but they are very good, and very necessary, for displaying rows and columns of data.

  1. If necessary, use the Files panel to open the file santorini.html in the lesson03 folder.
  2. Scroll to the bottom of the page, to where you see the text Insert table here.

    Delete that text and leave your mouse pointer in that position.

  3. In the Insert bar, click the Layout tab, and click the Table icon (see Figure 1).
  4. In the Table dialog box, type 6 for Rows and 3 for Columns. Ensure that width, border, padding, and spacing are left blank.

    These presentation aspects of the table will be created in CSS, making the table more accessible and useful on many devices in addition to the computer screen.

  5. Make sure the headings are set at the top of each column, and in the Caption field, type Santorini Hotels (see Figure 2).

    The table appears in the Dreamweaver document in a squished and unimpressive format, because it currently contains no content and has no size applied (see Figure 3).

    Using the Property inspector, you can assign an ID to the table.

  6. In the Table field, type hotels (see Figure 4).
  7. Click in the first cell of the top row of the table. Type Town.
  8. Press the Tab key to move to the next cell in the row. Type Hotel.
  9. Press Tab once more and type Rating (see Figure 5).

    To save time, you'll copy and paste a completed table.

  10. In the Files panel, find the file table.html and double-click it to open it.
  11. Click anywhere inside the table and select <table#hotels> in the tag selector (see Figure 6).
  12. Choose Edit > Copy, or press Control-C (Windows) or Command-C (Mac), to copy the table.
  13. Close the table.html tab and return to the santorini.html page.
  14. Delete the incomplete table that you began.
  • + Share This
  • 🔖 Save To Your Account