.tables { display: flex; justify-content: center; clear: both; } @media screen and (max-width: 1200px) { .tables { flex-direction: column; } } .table-container { margin: 0 1em; width: 100%; }