aligning a html table to the center code example Example: how to align table in html .centerTable { margin: 0px auto; }