ADDITIONAL TABLE ATTRIBUTES
ATTRIBUTE |
DESCRIPTION AND EXAMPLE VALUES
|
cellpadding |
Sets spacing around contents in cell
|
cellspacing |
Sets spacing between cells
|
colspan |
Makes a cell span more than one column
|
rowspan |
Makes a cell span more than one row
|
EXAMPLE
PRACTICE
1. Experiment with the example above:
-
Change the cellspacing and cellpadding values and observe .
-
Add another column and make the first row span all three columns.
-
Set the height of the table to 100%.
-
Set the height of the first row to 60px.
-
Vertically align all rows so that the contents are at the top.
-
Set the width of the first column to 30px.
-
Set the width of the third column to 50px .
2. Create a table that meets the following requirements:
-
It has 3 rows and 3 columns.
-
It spans the entire page.
-
The first column has only one cell that spans all three rows.
-
The cellspacing is set to 0 and the cellpadding is set to 3.
-
All cells are vertically aligned to the top.
3. Using tables create a page that meets the following
requirements:
-
It has a table of contents down the left side.
-
It has 3 "buttons" across the top to provide links within the
page. Each button should take up 1/3 of the main portion of the
window.
-
The page should look as shown.
SELF-QUIZ