You should indeed not use tables for layout purposes, but divs or the new HTML5 elements <section>, <header>, <footer>, <article>, <menu> and <aside).
Also, even with a margin and padding of 0, the borders will not be superimposed on each other. Only with absolute positioning, but then you are...