Jump to content

How to stack footer images horizontally on mobile?

Recommended Posts

Posted
1 hour ago, sleepy_rye said:

Site URL: http://www.navigreenengineering.com

Currently, the logos in my footer stay the same size as on desktop and stack vertically when on mobile.  However, I want them to resize smaller and stack horizontally.  Any suggestions?

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:first-child {
    display: grid;
    grid-template-columns: repeat(5,1fr)
  }

  section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:after ,section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:before{
    content:unset !important;
  } 
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
1 hour ago, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:first-child {
    display: grid;
    grid-template-columns: repeat(5,1fr)
  }

  section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:after ,section[data-section-id="5fc3fa5a4e98326c028c86c5"] .content .sqs-layout > .row:before{
    content:unset !important;
  } 
}

Let me know how it works on your site

It works perfectly, you're a godsend.  Any chance you feel like giving me an ELI5 of your thought process?

Posted
12 minutes ago, sleepy_rye said:

It works perfectly, you're a godsend.  Any chance you feel like giving me an ELI5 of your thought process?

I just make the wrapper element grid style with 5 columns and remove the pseudo elements before and after. 

To get through them, I combine using the dev tool and squarespace id finder extension.

Hope that it makes sense

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.