Я пытаюсь создать класс, который можно использовать, чтобы скрыть определенные элементы div в мобильной версии сайта. CSS, который я использую:
Код: Выделить всё
@media screen and (max-width: 720px) {
.desktop-only {
display: none !important;
}
}
Код: Выделить всё
I have tried all of the suggestions listed in Hide div on mobile devices, using CSS but can't seem to figure out what I've done wrong.
Here is a pen to illustrate the issue....resize it to under 720px and the desktop-only div doesn't hide http://codepen.io/anon/pen/vEjvbM
Источник: https://stackoverflow.com/questions/287 ... ot-working