Jump to content

Logo columns in Mobile grid 7.1?

Recommended Posts

  • Replies 11
  • Views 923
  • Created
  • Last Reply

Add To Home > Design > Custom CSS

/* The wall frame logos */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1597647440130_252727 .slide {
    width: 33.33% !important;
}
div#block-yui_3_17_2_1_1597647440130_252727 .slide img {
    width: 100% !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
4 hours ago, mportch said:

try remove block id in above code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Tried adding this code to the page header code injection but it doesn't work...

(It does work on these pages: awards, exhibitions, press)

 

<style>
  @media screen and (max-width:767px) {
  .gallery-grid-wrapper {
    grid-template-columns: repeat(3,auto) !important;
}
  }
</style>

Link to comment

@tuanphan

 

I have many product pages to add this 3 logo gallery config to in mobile view.

Is the only way to duplicate your original CSS and change the id block for each one?

I've started to already. It's a bit laborious and a lot of code.

I wondered if there was a way of making all the logos go into a 3 column configuration with one set of code across the whole site or both pages?

 

https://smilodon-ocelot-my5f.squarespace.com/lost-america-prints

https://www.mattportch.com/store

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.