Guest Posted January 7, 2021 Share Posted January 7, 2021 Site URL: https://www.gavindesantis.com/videonew Hello, I am trying to prevent the mobile layout from showing all 4 of my columns as 1 column with a bunch of rows. I have researched this on google and the Squarespace forums but I cannot find an exact solution for my website. I have played with margins, padding, and width percentages though I cannot get everything to align or resize properly. This is the new page I'm working on where I have the issue for mobile. https://www.gavindesantis.com/videonew The code I'm working with, which was a header injection is below. <style> @media only screen and (max-width: 767px) { .content-wrapper { width: calc(100%/3) !important; } } </style> Thank you very much. Link to comment
Beyondspace Posted January 7, 2021 Share Posted January 7, 2021 1 hour ago, gavindesantis said: Site URL: https://www.gavindesantis.com/videonew Hello, I am trying to prevent the mobile layout from showing all 4 of my columns as 1 column with a bunch of rows. I have researched this on google and the Squarespace forums but I cannot find an exact solution for my website. I have played with margins, padding, and width percentages though I cannot get everything to align or resize properly. This is the new page I'm working on where I have the issue for mobile. https://www.gavindesantis.com/videonew The code I'm working with, which was a header injection is below. <style> @media only screen and (max-width: 767px) { .content-wrapper { width: calc(100%/3) !important; } } </style> Thank you very much. You should remove the code and replace with this, it make sure the column on mobile keep 1/3 of width Add the snippet below to Design-Custom CSS @media only screen and (max-width: 767px) { section[data-section-id="5ff523221e9d50058e860c7c"] .row .sqs-col-4 { width: 33.33% !important; float: left !important; } section[data-section-id="5ff6b26590f0197fa6727ede"] .row .sqs-col-4 { width: 33.33% !important; float: left !important; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Guest Posted January 7, 2021 Share Posted January 7, 2021 10 hours ago, bangank36 said: You should remove the code and replace with this, it make sure the column on mobile keep 1/3 of width Add the snippet below to Design-Custom CSS @media only screen and (max-width: 767px) { section[data-section-id="5ff523221e9d50058e860c7c"] .row .sqs-col-4 { width: 33.33% !important; float: left !important; } section[data-section-id="5ff6b26590f0197fa6727ede"] .row .sqs-col-4 { width: 33.33% !important; float: left !important; } } Thank you so much. I wish Squarespace made this easier. Link to comment
tuanphan Posted January 10, 2021 Share Posted January 10, 2021 @gavindesantis I think the layout on tablet is not good. Do you want to adjust something? and video page and you haven't change SEO Title, so browser tab name still shows "Contact 1" https://www.gavindesantis.com/contact and huge white space (tablet) 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
Archived
This topic is now archived and is closed to further replies.