|
Cellspacing
is the amount of space between cells in a table.
For
example, if the HTML syntax is <table border=0 cellpadding=0 cellspacing=5> the
table produced will have a 5-pixel space around the entire outside
of the cell, moving your next cell (or other surrounding objects)
over by 5 pixels.
<table cellspacing=5>: This table has been defined with
a cellspacing of 5 pixels. As you can see, the cell has a 5-pixel "spacing" in
all directions from the outside edge of cell:
|
Web Hosting
|
Colocation
|
|
Domain Name
|
eCommerce
|
<table cellspacing=20>: This table has been defined with
a cellspacing of 20 pixels. As you can see, the cell has a 20-pixel "spacing" in all directions
from the outside edge of cell.
|
Web Hosting
|
Colocation
|
|
Domain Name
|
eCommerce
|
Notice
that cellspacing adds space between the entire cell (top, bottom,
left, and right) so the text is surrounded with a "border of
space." The latter example isolates the terms and offers improved
readability.
See
also cellpadding.
|