0

Trying to make some CSS changes, that will only affect view on mobile phones. I made changes below, but it also affects desktop views.

nav {
    margin-top: 140px;
}

&

ownmenu {
    background-color: white;
}
1

Try media query like

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    /* YOUR MOBILE STYLE HERE */
}

Hope it will help!

Not the answer you're looking for? Browse other questions tagged or ask your own question.