Jump to content

How to stack footer images horizontally on mobile?

Recommended Posts

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.png.554df46f61c427c6ed3dd08a3cd1bc72.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
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?

Link to comment
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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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.