The HTML table has by default, cellspacing=“2” and cellpadding=“1” (attributes).
That would be the equivalent of
th,td {
padding:1px;
}
and
table {
border-spacing:2px;
}
The cellpadding has been accounted for in the padding applied to each of the cells. However, the cellspacing has not. You can set the cellspacing attribute to “0”, or use CSS and apply {border-spacing:0}.
<table cellspacing="0" <!-- deprecated -->
or
table {
border-spacing:0; /* current standard, preferred */
}
then they will appear to be the same width on the screen.