@media screen and (max-width:543px) { .vertical_p { width: 100%; } } @media screen and (min-width:544px) { .vertical_p { width: 50%; } }