|
ow 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 mix up a lot (we do, anyway): 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:
Just remember: Spacing increases the size of the border, and padding increases the space around the border.
|