Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hide-blocks-certain-widths.css
@media screen and (min-width: 1100px) {
.home .to-show-on-mobile {
display: none;
}
}
@media screen and (min-width: 782px) and (max-width: 1099px) {
.home .to-show-on-mobile {
display: none;
}
}
@media screen and (max-width: 781px) {
/* Hide desktop content on mobile views */
.home .to-show-on-desktop {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment