ora87 Posted June 7, 2022 Share Posted June 7, 2022 Site URL: https://collectivecanvas.com/testbedzzz Hi team, I'm usually fairly good at making adjustments like these with CSS but this is proving more difficult than I anticipated. I'm trying to prevent the four images at the bottom of this test page from stacking on mobile, however nothing I've tried seems to work. Could someone more adept than me provide some CSS that will help me prevent this - I'd like them to stay in a row of four on mobile. Thanks! Link to comment
ArminB Posted June 7, 2022 Share Posted June 7, 2022 Try using a GALLERY block for this as it already shows 2 rows on mobile if that's what you're looking for and you can show the caption... that might do it without additional CSS you can later add a CSS rule to show/hide the different variants on mobile/desktop Example: @media only screen and (min-width: 840px) {#BLOCK ID{display: none !important}} @media only screen and (max-width: 840px) { #BLOCK ID{display: none !important}} About Armin: Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084 Website: www.braunsberger-media.com Link to comment
ora87 Posted June 7, 2022 Author Share Posted June 7, 2022 Hi Armin, Appreciate the response! Unfortunately the gallery blocks aren't the best solution here - I need the images to display 4x1 at all page widths and for the images to display with transparent backgrounds. There must be another way to target these specifically in the CSS? Nothing I've done seems to prevent them wrapping... Thanks! Link to comment
tuanphan Posted June 11, 2022 Share Posted June 11, 2022 On 6/8/2022 at 4:13 AM, ora87 said: Hi Armin, Appreciate the response! Unfortunately the gallery blocks aren't the best solution here - I need the images to display 4x1 at all page widths and for the images to display with transparent backgrounds. There must be another way to target these specifically in the CSS? Nothing I've done seems to prevent them wrapping... Thanks! The page doesn't exist now. Can you check it again? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment