#main-container{ display: flex; } .section{ flex: 50%; margin: 30px; margin-bottom: 60px; padding: 10px; text-align: center; } .section input{ margin: 10px; width: auto; } .title{ font-weight: bold; font-size: 2pc; margin-bottom: 20px; } @media screen and (max-width: 900px){ #main-container{ display: block; } } .errmsg{ color: salmon; }