Custom CSS Code to control the top and bottom padding of the footer

Topic summary

A user seeks CSS code to adjust the top and bottom padding of their footer section on their Shopify store (theoutdoorarmory.com).

Three solutions were provided:

  1. Asad-Mahmood’s approach: Target .shopify-section-footer > nav with custom padding values using !important declarations.

  2. DaisyVo’s method:

    • Navigate to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS
    • Apply CSS targeting nav#shopify-section-footer for top padding and its child div for bottom padding
    • Includes a visual result screenshot
  3. Made4uo-Ribe’s solution:

    • Edit the theme’s CSS file (base.css, style.css, or theme.css) directly through the code editor
    • Similar CSS targeting nav#shopify-section-footer and .shopify-section-footer > nav > *
    • Provides before/after visual result

Status: Multiple working solutions offered; awaiting user confirmation on which approach worked best.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I hope you’re having a great day. Could you kindly send me a CSS code for which I can tweak the top and bottom padding of my footer section? Please see below for a better understanding of the matter.

Link is: https://theoutdoorarmory.com

Thank you,

Outdoor Armory

1 Like

Hi,

You can adjust the top and bottom padding using this css

.shopify-section-footer > nav {
    padding-top: 51px !important;
    padding-bottom: 16px !important;
}

Hi @outdoorarmory

To complete your requests, please follow these steps:

  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.
nav#shopify-section-footer {
    padding-top: 20px !important;
}
nav#shopify-section-footer > div {
    padding-bottom: 0 !important;
}

Here is the result:

I hope this helps

Best,

Daisy

Hi @outdoorarmory

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
nav#shopify-section-footer {
    padding-top: 20px;
}
.shopify-section-footer > nav > * {
    padding-bottom: 0px !important;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!