How can I raise the footer background margin on my website?

Hi there,

If you take a look at my website footer, you will see the footer text is too close to the edge of the footer background. I need the footer background to extend higher up. How do I do this?

elevatedkarma.com

password: chifri

Thanks for taking a look!

You could try adding some padding to the top. As an example, add this code to the bottom of theme.css

.site-footer.critical-hidden {
  padding-top:50px;
}

Result:

1 Like

Thanks, Nick!

I’m still having the issue with my mobile page. Please take a look.

Elevatedkarma.com

password: chifri

Thanks!

Add this code at the bottom of theme.css

@media only screen and (max-width: 749px) {
.site-footer__content {
  padding-top:50px;
}
}

Hi @Nick_Marketing ,

That didn’t make a difference. Any other suggestions?

I would assume it is probably a cache issue. When I add the recent code on my end, there is an extra 50px padding added on the mobile version.

@Nick_Marketing , how strange! I closed the page, cleared my cache, visited the page, click around, refreshed. Nothing. It’s still not showing the added margin.

One more thing you can try is adding !important. Like this:

@media only screen and (max-width: 749px) {
.site-footer__content {
  padding-top:45px !important;
}
}

Hi @Nick_Marketing , that didn’t work either. Tried clearing cache, etc to verify.

Here’s the final piece of code you can try

@media screen and (max-width: 749px) {
footer.site-footer{
  padding-top: 50px !important;
}
}

This one didn’t work either.

Thanks for your help, @Nick_Marketing ! Appreciate all your suggestions!