@media only screen and (min-width: 600px) { .main { width: 80%; margin-left: auto; margin-right: auto; } .twolists { display: flex; flex-wrap: wrap; justify-content: space-around; div { display: flex; flex-direction: column; width: 45%; } } }