Andyjk Posted August 18, 2022 Share Posted August 18, 2022 Site URL: https://www.andykerrphotography.com/gallery I have a 7.0 site using the Basil template, part of the Brine family. I want the gallery to show in Carousel mode when viewed on desktop, but in Stacked mode when viewed on mobile. Does anyone know of a way to achieve this please? Many thanks in advance for your help, Andy Link to comment
tuanphan Posted August 21, 2022 Share Posted August 21, 2022 Hi, You can set Carousel on desktop, then we will give the code to make it stacked on mobile. Andyjk 1 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
Andyjk Posted August 22, 2022 Author Share Posted August 22, 2022 On 8/21/2022 at 2:09 AM, tuanphan said: Hi, You can set Carousel on desktop, then we will give the code to make it stacked on mobile. Thanks for the advice. Have now set the gallery to carousel on desktop. Link to comment
tuanphan Posted August 25, 2022 Share Posted August 25, 2022 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
Andyjk Posted August 25, 2022 Author Share Posted August 25, 2022 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 Link to comment
tuanphan Posted August 28, 2022 Share Posted August 28, 2022 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 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
Andyjk Posted August 30, 2022 Author Share Posted August 30, 2022 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! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment