@media screen and (min-width: 780px) { //css here } @media screen and (max-width: 780px) { //css here }