Lesson 6 : Working with Tables
 
   
top Pixels vs. Percentages
 
 

Tables are a very good way to lay out data. Tables can also be used to control where text and graphics appear in a page. Once you create a table, you can add content, modify cell and row properties, and copy and paste multiple cells.

The sizes of your rows, columns, and table can be defined either in
     > percent (in which the size varies depending on the size of the user's browser               window), or
     
     > pixels, which allow you to specify exact values.

In some cases, it may be desirable to set a standard size in pixels (say for a navigation bar) to give the pages in your site a consistent appearance. Also, you need to consider the resolution of the user's monitor and whether the pages will be printed. To convert table sizing from percentages to pixels (or vice versa), first select the table. Then change any of the fields shown below in the properties palette.

Insert a table
1. From the top menu bar, select Insert > Table.

2. In the dialog box that appears, enter the following information:

> Rows and Columns Specify the number of table rows and columns.

> Cell Padding Specifies the amount of spacing between the cell content and the cell boundary (or wall).

> Cell Spacing Specifies the amount of spacing between each table cell, not including the border.

> Width Specifies the width of the table in pixels or as a percentage of the browser window.

> Border Specifies the width of the table border.

A nested table is a table that has been inserted into a table cell. You can create a nested table in the same way as any other table.

Nest a table within a table cell
1. Click in the cell where you want the second table to appear and choose Insert > Table.

2. In the dialog box that appears, specify the table properties and click OK.

Add a graphic to a table
1. Click in the cell where you want the graphic to appear.

2. Click the Insert Image button in the Common panel of the Object palette or choose Insert > Image.

3. In the dialog box that appears, choose an image file.

Add a border to a table
1. After inserting table, place cursor in a table cell and Right Click.

2. From the menu choose Select Table.

ntire table and its contents should now have a black border around it. In the Property Inspector insert a value of "1" in the Border box.