How can I align menu blocks in the footer using CSS code?

Topic summary

A user seeks help aligning four menu blocks in their footer on mobile devices (max-width: 749px) by modifying CSS in the section-footer.css file.

Initial Request:

  • User wants menu blocks arranged in two rows: first and second menus in line one, third and fourth menus in line two
  • Provided corrupted/reversed CSS code that wasn’t working properly

Troubleshooting Process:

  • Support teams requested store URL and asked to disable right-click blocking/password protection for inspection
  • Initial misunderstanding: BSS-Commerce first suggested centering all blocks vertically
  • User clarified the actual alignment issue with screenshots showing misaligned blocks

Solution Provided:
BSS-Commerce offered updated CSS targeting .footer-block.footer-block--menu and .footer-block.grid__item classes:

  • Set width to 49% for menu blocks
  • Applied flexbox display properties
  • Adjusted padding and margins to 0
  • Added flex-direction and alignment properties

Status: The discussion appears resolved with final CSS code provided for the section-footer.css file, though user confirmation of success is not explicitly shown.

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

I would like to align the four menu blocks in the footer by modifying this code that I placed in the section-footer.css file. How can I do? Than you

@media screen and (max-width: 749px) {
.footer__content-top {
padding-left: 15px !important;
padding-right: 10px !important;
}
.footer-block.footer-block–menu {
width: 50% !important;
display: inline-block !important;
vertical-align: top !important;
height: 70px;
}
}

Hello @ahmedabdelfatta .

It’s the GemPages Support Team and we are glad to assist you today!

Could you please share your store URL ( with the password if your store password is enabled ) then I can see and suggest something for you?

Best regards,
GemPages Support Team

Hello

The problem is in the mobile version, the store link is here: https://www.ghiblimerchandise.it/

Thank you, kind regards

Hi @ahmedabdelfatta

We just checked your website (https://www.ghiblimerchandise.it/) and realized that your site is blocking right click and Inspect element so we can’t check for you.

Can you kindly turn it off so we can check for you. Thanks!

Hello BSS-Commerce

Thank you for the replay

I disabled the blocking right click and Inspect.

Thank you and kind regads

Hi @ahmedabdelfatta

Do you want to center footer blocks on mobile?

  • You need to slightly modify the CSS you added to the class: “.footer-block.footer-block–menu” to
/* start bss fix */
@media screen and (max-width: 749px) {
    .footer-block.footer-block--menu {
        vertical-align: top !important;
        display: flex;
        justify-content: center;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
}

/* end bss fix */

We hope that it will work for you.

Hi, nope I want to align the first menu to the second menu in the first line, and the third menu to the fourth menu in the second line. Now it’s not aligned, thank you

@ahmedabdelfatta We’re sorry for misunderstanding what you meant to center.

Is this the result you want to change?

  • Please modify the CSS as follows:
/* start bss fix */
@media screen and (max-width: 749px) {
    .footer-block.footer-block--menu {
        width: 50% !important;
        display: inline-block !important;
        vertical-align: top !important;
    }

    .footer-block.grid__item {
        padding: 0;
        width: 100%;
    }
}

/* end bss fix */

We hope that it will work for you.

Hello, i tried to add this code in the bottom of the code in section-footer.css but the problem still remain. the second block it’s not alligned. What’s the reason?

Thank you

Hi @ahmedabdelfatta

We changed the CSS code to edit it for you:

You need to paste the following code below using file section-footer.css and save the file:

/* start bss fix */
@media screen and (max-width: 749px) {
    .footer__blocks-wrapper {
        display: flex;
    }
    .footer-block.grid__item {
        padding: 0;
        margin: 0;
        width: 49%;
    }
}

/* end bss fix */