Jump to content

Justifying images in gallery

Recommended Posts

  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS

@media screen and (min-width:901px) {
body#collection-65bbd0e1a9112d3cac570ae4 {
.sqs-gallery-design-autocolumns {
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px;
}
.collection-type-gallery.gallery-design-grid .slide {
    width: 100% !important;
    height: auto !important;
    top: unset !important;
    left: unset !important;
    position: relative !important;
}
.sqs-gallery-design-autocolumns-slide img {
    height: 100% !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!)

Posted

Hi tuanphan

Thanks for your reply. Unfortunately that didn't work but resulted in moving the footer text up and behind the top row of images.

I do already have some custom code (that you gave me last year - thanks!) and I wonder if that is interfering. Or should I put the new code you've given before the older code? The code I currently have is

@media screen and (max-width:640px) {
a.Mobile-bar-branding {
    font-size: 18px !important;
}
.Mobile-bar.Mobile-bar--top {
    justify-content: space-between !important;
}
[data-nc-container="top-center"] {
    float: right !important;
    position: absolute;
    right: 2vw;
}
}

Thanks

John

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.