Top Padding On Mobile
-
Hello. I’m trying to completely remove the background of my blog from mobile only. The dark grey background shows up at the top of the page when viewed from a mobile because that’s the way I have it set when viewed from a computer and it looks good. However on mobile it’s a boring vacant space. Any ideas?
Already tried this and it didn’t work:@media (max-width : 480px) {
body.custom-background {
background-image: none;
}
}The blog I need help with is: (visible only to logged in users)
-
No, unfortunately not. Both of them turn the grey at the top of the page white, but the empty space is still there.
This is what’s creating the space:
.site {
margin-top: 42px !important;
margin-bottom: 12px !important;
}
Maybe there is a way to cancel it out for mobile only. -
-
I’m glad to hear it worked. The !important declaration takes precedence over other styles, so we needed to add another !important declaration to overwrite.
- The topic ‘Top Padding On Mobile’ is closed to new replies.