|
Now that you've got
your table all aligned, you may want to adjust the spacing of the cells. Here
are two tags that do really similar things that you'll probably use a lot
cellspacing and cellpadding.
They both put a
little space between the cells of your table, but they do it in different ways.
cellspacing makes the border of the table fatter,
increasing the distance between cells. cellpadding
adds invisible space inside the border of the cells, which pushes the cell's
contents away from the border on all four sides.
cellspacing=10
|
cellpadding=10
|
Both attributes go in
the <table> tag, like so:
<table cellpadding="4" cellspacing="5">
Just remember:
Spacing increases the size of the border, and padding increases the space
around the border. |