Jump to content

Images in to columns on mobile homepage

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 3
  • Views 250
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Try adding to Design > Custom CSS

/* Strips to grid mobile */
@media screen and (max-width:767px) {
body.homepage {
.gallery-strips-wrapper.gallery-strips-list--ready {
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 10px 10px;
}
figure.gallery-strips-item {
    position: relative !important;
    transform: unset !important;
    width: 100% !important;
}
.gallery-strips-item-wrapper {
    height: auto !important;
}
.gallery-strips-item img {
    height: auto !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
  • 2 weeks later...

That worked great thank you. Could you also advise how I get all the images to be the same dimensions just on mobile - at the moment they are not pulling through the same height so i have one tall one and one short one next to each other.

Link to comment
19 hours ago, HannahAR said:

That worked great thank you. Could you also advise how I get all the images to be the same dimensions just on mobile - at the moment they are not pulling through the same height so i have one tall one and one short one next to each other.

Can you take a screenshot? The homepage images look fine

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

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.