how to center table horizontally in css code example Example: how to center the table horizontally css table { margin-left: auto; margin-right: auto; }