I have an HTML structure from a legacy application that I have to style as our new application. To do this, I need to add margin only for the body. Therefore, setting the fill in the table will not work, because the title should be as wide as the table.
Here's a little sketch of how it should look:

Why do I need it? I have to put two tables side by side, and it should look like there is only one heading, but two content tables.
I played with padding and borders of thead element, but the problem is that thead has a lower border that doesn't apply to the right border.
Edit:/
- , . , , , .
, , , tbodys theads, thead.
- , , .
Edit:/
, , , , DOM JS:
