Jump to content

Help Remove Random gaps in Grid Gallery on Mobile

Recommended Posts

hey

I'm using the following code to have image titles wrap:

.image-slide-title {
  	white-space: normal !important;
  	line-height: 1.2em;
  }

but I then get random spacing gaps on mobile view.

Any ideas how to remove them while keeping the gallery in 2 columns (I know it can be fixed by making it 1 column but the client wants 2 columns)

 

Bonus question, if you know how to get the titles right under the image instead of having the gap, that would be great, but not key.

Thanks

Link to comment
  • F24M changed the title to Help Remove Random gaps in Grid Gallery on Mobile
  • Replies 4
  • Views 1.1k
  • Created
  • Last Reply
On 1/21/2021 at 2:14 AM, F24M said:

See attached for the gaps.

As I mentioned, the client wants two columns

 

gaps.jpg

Add to Design > Custom CSS

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1610492220506_3812 .sqs-gallery-block-grid .slide:nth-child(2n+1) {
    clear: left !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
On 1/23/2021 at 12:25 PM, tuanphan said:

Add to Design > Custom CSS


@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1610492220506_3812 .sqs-gallery-block-grid .slide:nth-child(2n+1) {
    clear: left !important;
}
}

 

Brilliant, thanks that seems to have done the trick!

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.