Jump to content

Use one gallery style for desktop, a different one for mobile

Recommended Posts

On 2/21/2024 at 12:53 AM, ClutchMedia said:

Hello I have a Slideshow Reel on my "Clutch Media" page. I need the height on desktop to be 99 but the height on mobile to be 35. This ensure the photos don't get cut off. My page link is https://www.vclutch.com/clutchmedia . I need CSS for the slideshow reel on the page please. Thanks for the help in advance!

To change height on desktop, use this CSS code

@media screen and (min-width:992px) {
body#collection-61ca17e4faa6734f646c5b87 .gallery-reel {
    height: 99vh !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
  • Replies 29
  • Views 5.4k
  • Created
  • Last Reply

Top Posters In This Topic

Hello @tuanphan I am having a similar issue to others. I have grid: simple setup 1 column setup for mobile purposes (currently only set to my "portraits" page) and I have slideshow: reel setup for other pages but I want all my desktop pages to be slideshow reel and all my mobile to be grid simple 1 column.

my website is: www.babsyshots.com

Link to comment
6 minutes ago, Babsy said:

Hello @tuanphan I am having a similar issue to others. I have grid: simple setup 1 column setup for mobile purposes (currently only set to my "portraits" page) and I have slideshow: reel setup for other pages but I want all my desktop pages to be slideshow reel and all my mobile to be grid simple 1 column.

my website is: www.babsyshots.com

@tuanphan I actually changed my mobile to grind masonry.

Link to comment
  • 1 month later...
On 4/3/2024 at 12:08 AM, miabain1 said:

Hi @tuanphan! I want to use Masonry Gallery on both mobile and desktop but want desktop to have 2 columns and mobile to have 1. Is that possible? My website is miabain.design, pw is "Frizzle". I would want this feature for all the pages: https://www.miabain.design/ponderhttps://www.miabain.design/mnmlst, etc. TIA!!

You can use this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
	.gallery-masonry-wrapper.gallery-masonry-list--ready {
    height: auto !important;
    display: grid;
    grid-template-columns: repeat(1,1fr) !important;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    transform: unset !important;
}
.gallery-masonry-item-wrapper {
    height: 100% !important;
}
    figure.gallery-masonry-item img {
        width: 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!)

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.