.containerx { padding: 100px 250px; width: auto; } @media screen and (max-width:1000px) { .containerx { padding: 0; } }