Set table margin

closes #483