|
TOP
Would you prefer a wider border? Just put a higher number where the 1
is,such as a 5,and this is what it will look like...
Extras - Cell Padding and Cell Spacing.
TOP
Cell Padding is the code that adds space,controls the space used to pad the contents
of the table and Cell Spacing controls the spacing between the table cells and rows
themselves.
Let's say that you feel that your text is too close to the border of the table
and you'd like to add some space to improve its appearance. By adding a
CELLPADDING=5,you'll basically be padding
the table with 5 pixels of free space as the table below shows.
This is what the code above creates...
| Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
CELLSPACING is only needed if you want to add space around multiple table
cells and rows.
Below is a table with two cells and a CELLSPACING=0 added...
| Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
|
TOP
This table below is what you get when you add 5 to the CELLSPACING=
code for the table above... |
| Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
Add a color to the border of the table above,and this is how it will look...
| Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
Your text goes here....a b c d e f g h i j k l m n o p q r s t u v w x y z |
All codes mentioned in this lesson can be mixed and matched,colors and widths changed,
except where stated otherwise,so you can create your own very attractive tables.:)
Your homework for this lesson;
Build a table using this lessons instructions and choosing two or more of the effects
we've outlined above,
such as a colored border or some added cell spacing,etc... and then place your own text
or picture inside
it on a test page and upload it to your directory.
If you have completed this lesson successfully,you can then be sent on to the next lesson -
tables with multiple cells.
Back to the Introduction...
Back to Lesson Two...
Back to Lesson Three
back to Lesson four
To Lesson Six
|