Site hosted by Angelfire.com: Build your free website today!
Tutorial 3- Table Boreders and CellSpacing


Part A:

By default browsers display tables without table borders. You can create a table border by adding the BORDER property to that TABLE tag. The code for creating a table border is

< TABLE BORDER=size >

where size is the width of the prder in pixels. The size value is optional, if you dont specify a size, but simply enter BORDER, the browser creates a border 1 pixel wide around the table.

Here are some examples of table border sizes:

A A
A A

0 Pixels

A A
A A

1 Pixel

A A
A A

5 Pixels

A A
A A

10 Pixels


Part B:

The CELLSPACING property controls the amount of spacec inserted between table cells. The code for specifying the cell spacing is:

< TABLE CELLSPACING=size >

where size is the width of the interior borders in pixels.

Here are some examples of cellspacing sizes:

A A
A A

0 Pixels

A A
A A

1 Pixel

A A
A A

5 Pixels

A A
A A

10 Pixels