TABLE WORKSHEET #1, LESSON 34
Please write the code to produce the following tables. (This was printed out in Internet Explorer; pull your code into IE and try to get it to look EXACTLY the same!)
Basic table; NO attributes:
Put in a 1-pixel border:
Try to figure out how many pixels this border is!
Go back to the original border. Put in some cellpadding (try to figure out how much!)
Take out the cellpadding and put in cellspacing! See the difference?
Put in BOTH cellpadding and cellspacing! (Try to duplicate what I have here!)
Now, try to duplicate THIS:
Now, some practice with COLSPAN and ROWSPAN in the <TD> container.
First, some COLSPAN practice:
cell#1
| cell#2
| cell#3
|
next cell
| last cell
|
And again...
cell#1
| cell#2
| cell#3
|
next cell
| last cell
|
And again!
one | two | three |
four
|
five
| six
|
Now, some ROWSPAN practice:
And again...
And again!
Try this combo!
one
| two
| three
| four |
five
| six
|
seven
| eight |