Revert "Revert "table HTML layout""

This reverts commit 437c5d8fd4f4e7f1f4d936d90ac883f06d1d8a58.