Hi there,
I’ve added the below code to add margin to the footer but I want it to only apply to desktop, how do I do this?
password: meifay
Thanks so much!
A user wants to add left and right padding/margin to their Shopify store’s footer, but only on desktop devices, not mobile.
Initial Problem:
Solutions Proposed:
ZenoPageBuilder suggested wrapping the CSS in a media query:
@media (min-width: 990px) { /* desktop code */ }User’s attempt failed - the code stopped working when they tried implementing the media query
Dan-From-Ryviu provided alternative code:
min-width: 768pxStatus: The discussion appears ongoing, awaiting confirmation if the latest solution resolves the issue. The user also mentioned wanting the footer section to match the width of the policy links section.
Hi there,
I’ve added the below code to add margin to the footer but I want it to only apply to desktop, how do I do this?
password: meifay
Thanks so much!
hi there, thanks for your reply. Ufortunately, the code stops working altogether when I add that in front.
is this correct?
@media (min-width: 990px) {
padding-left: 200px;
padding-right: 200px;
}
Ideally I just want it the same width as the footer section with the policy links ![]()
Hi @INFRA
You can try to add this code to Custom CSS of footer section
@media (min-width: 768px) {
footer {
padding-left: 100px;
padding-right: 100px;
}
}