Jump to content

Kinreu

Member
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Kinreu got a reaction from tuanphan in Gallery - 2 columns of Images for desktop gallery and 1 column for mobile - Need code that works   
    thanks @tuanphan that i wanted the confirmation for that the code to display in all the situation was correct.  Thanks afain for your help.
  2. Like
    Kinreu reacted to tuanphan in Gallery - 2 columns of Images for desktop gallery and 1 column for mobile - Need code that works   
    With 2 columns on iPad, use this CSS code
    @media only screen and (max-width: 991px) and (min-width:768px) { body.homepage { .gallery-masonry .gallery-masonry-wrapper { columns: 2; column-gap: 0; height: auto!important; display: block!important; padding: 0px; } .gallery-masonry-item-wrapper { height: auto!important; } .gallery-masonry-item { position: relative!important; transform: none!important; width: 100%!important; display: block; padding: 1.5px!important; box-sizing: border-box; } .gallery-masonry .gallery-masonry-item img { height: 100%!important; width: 100%!important; } }}  
  3. Like
    Kinreu reacted to tuanphan in Gallery - 2 columns of Images for desktop gallery and 1 column for mobile - Need code that works   
    Above is for Gallery Masonry, with Gallery Grid, use this code
    @media screen and (max-width:767px) { .gallery-grid-wrapper { grid-template-columns: repeat(1,1fr) !important; } } If it doesn't work, please share link to page where you use gallery, I can check easier
×
×
  • 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.