HTML and CSS Reference
In-Depth Information
Figure 10-2. The border, cellspacing, and cellpadding
attributes of a table
While all sorts of combinations of the
border
and
cellspacing
attributes
are possible, these are the most common:
•
border=1
and
cellspacing=0
produces the narrowest possible in-
terior and exterior borders: 2 pixels wide.
•
border=
n
and
cellspacing=0
makes the narrowest possible interior
borders (2 pixels wide) with an external border that is
n
+ 1 pixels
wide.
•
border=1
and
cellspacing=
n
tables have equal-width exterior and
interior borders, all with chiseled edges just 1 pixel wide. All bor-
ders will be
n
+ 2 pixels wide.