Jump to content

Gallery view - need Carousel on Desktop, but Stacked on mobile

Recommended Posts

On 8/22/2022 at 3:14 PM, Andyjk said:

Thanks for the advice. Have now set the gallery to carousel on desktop.

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1578591267687_4923>div>div {
    position: static !important;
}
.sqs-gallery-design-strip .sqs-wrapper {
    width: 100% !important;
    position: static !important;
}
div#block-yui_3_17_2_1_1578591267687_4923 .sqs-gallery-design-strip-slide {
    width: 100% !important;
    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
1 hour ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1578591267687_4923>div>div {
    position: static !important;
}
.sqs-gallery-design-strip .sqs-wrapper {
    width: 100% !important;
    position: static !important;
}
div#block-yui_3_17_2_1_1578591267687_4923 .sqs-gallery-design-strip-slide {
    width: 100% !important;
    height: auto !important;
}
}

Thanks so much tuanphan! This has definitely helped, but I now have a large block of banner colour (brown) after the last image on tablet and mobile. Is there a way to reduce this please? Also, ideally the tablet view would be the same as when viewed on desktop - is this possible please.

Thank you again for your help - it's hugely appreciated.

Regards, Andy

Screenshot 2022-08-25 at 16.50.36.png

Screenshot 2022-08-25 at 16.52.01.png

Link to comment
On 8/25/2022 at 10:59 PM, Andyjk said:

Thanks so much tuanphan! This has definitely helped, but I now have a large block of banner colour (brown) after the last image on tablet and mobile. Is there a way to reduce this please? Also, ideally the tablet view would be the same as when viewed on desktop - is this possible please.

Thank you again for your help - it's hugely appreciated.

Regards, Andy

Screenshot 2022-08-25 at 16.50.36.png

Screenshot 2022-08-25 at 16.52.01.png

Hi,

Try this new code

@media screen and (max-width:991px) {
div#block-yui_3_17_2_1_1578591267687_4923>div>div {
    position: static !important;
}
.sqs-gallery-design-strip .sqs-wrapper {
    width: 100% !important;
    position: static !important;
}
div#block-yui_3_17_2_1_1578591267687_4923 .sqs-gallery-design-strip-slide {
    width: 100% !important;
    height: auto !important;
}
/* space under last image */
div#block-yui_3_17_2_1_1578591267687_4923>div {
    padding-bottom: 10% !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 8/28/2022 at 8:45 AM, tuanphan said:
@media screen and (max-width:991px) {
div#block-yui_3_17_2_1_1578591267687_4923>div>div {
    position: static !important;
}
.sqs-gallery-design-strip .sqs-wrapper {
    width: 100% !important;
    position: static !important;
}
div#block-yui_3_17_2_1_1578591267687_4923 .sqs-gallery-design-strip-slide {
    width: 100% !important;
    height: auto !important;
}
/* space under last image */
div#block-yui_3_17_2_1_1578591267687_4923>div {
    padding-bottom: 10% !Important;
}
}

Thank you so much. This has solved the problem!

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.