Revert "Revert "table HTML layout""

This reverts commit b595f0b568704316194051389dfe4074916a2c08.