i have am html table that can be max 700px wide and i dont know how many columns there will be (between 3 and 10). i want all elements to have 5px padding, but this increases the width of the table and causes the div in which it sits to show horizontal scrollbars.
since i dont know the nbr of columns, its not possible to subtract the extra px added by the padding from the total width.
putting an overflow value on the div has no point since it will just obscure the columns beyond 700px.
is there a way to get around this, to set a proper hard limit on the width of the table?