Jibba Jabba said:
Been trying the whole night but just can't set a left margin for a TD
using CSS.
Margins only apply to the outer table, not cells. Padding only applies
to cells, not the outer table.
Cellspacing (what you're after) is done in CSS using the border-spacing
property, however MSIE doesn't support it (as usual):
table {
margin:1em 5%;
border:black thick solid;
border-spacing:2em 0.25em;
}
th,td {
padding:0.25em;
border:black thin solid;
}
As an aside, another property for the outer table is border-collapse.
This collapses the borders throughout the whole table and is supported
from IE6 (though maybe IE5.5 supports it too?). You would use this
property *instead* of border spacing:
table {
margin:1em 5%;
border:black thin solid;
border-collapse:collapse;
}