Archived topic
Remove space from top and bottom mobile menu
1 reply · Started by Edwin on March 29, 2017
Viewing posts 1–2 of 2
Hi Tom
How to remove the top and bottom space from mobile menu.
The space between menu and logo and menu and slider
Hi there,
- For the space between logo and menu, add this CSS:
@media (max-width: 768px) {
.inside-header>:not(:last-child) {
margin-bottom: 0;
}
}
Then there is the top margin you've added:
.main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a{
margin-top:40px;
border-radius: 5px;
}
- For space between menu and content, add this CSS:
@media (max-width: 768px) {
.site-content {
padding-top: 0;
}
}
Then the rest of the padding is coming from this CSS you've added (which is missing a closing bracket by the way):
@media screen and (min-width:0px) and (max-width: 700px) {
.entry-content{
padding:30px;
}
Let me know if this helps.
This archived topic is closed to new replies.