Archived topic
Sidebar widget padding on tablet/mobile
3 replies · Started by Claire on October 31, 2018
I'm using GP Premium and the Widget Padding module. I've set the Widget Padding option as mentioned here https://docs.generatepress.com/article/widget-padding/ to 40px for all.
It looks fine on desktop, but there's a big gap between the widgets on tablet/mobile which I want to reduce.
Based on browser inspection I've tried using the following CSS, but it doesn't work. I'm still getting 40px padding all round.
@media only screen and (min-width: 768px) {
.footer-widgets, .widget-area .widget {
padding: 20px 40px;
}
}
Is there any way to override the Customizer settings for mobile devices, or other code you can suggest?
Hi there,
Maybe give this a shot:
@media (max-width: 768px) {
.footer-widgets, .widget-area .widget {
padding: 20px 40px;
}
}
More info here: https://docs.generatepress.com/article/responsive-display/#responsive-breakpoints
Let me know if this helps :)
Thanks Leo, that worked! I think I got my min-width and max-width mixed up. ;)
No problem :)