Don´t show code on mobile devices

Hej,

I am using this code " .new-item:nth-child(3) {margin-top:-100px} " for a collection grid on desktop and tablet but i don´t want it to be shown on mobile. Any ideas on how to fix this?

Thanks for the help!

KR,
Cedric


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi @CedricC ,
use css queries.

@media screen and (min-width: 769px) {
    /* STYLES HERE */
}
2 Likes

Easy as that! Thanks alot Maxi :slight_smile: