ilonapoutanen Posted October 28, 2020 Share Posted October 28, 2020 Site URL: https://www.poutacreative.fi/ Hi! I have a testimonial slider on my front page and it works perfectly on mobile and on desktop. However on smaller screens (smaller laptop, tablet) it adds extra padding to the right side for the whole front page. It also affects to text which is not fully centered anymore. How could I fix that? Link to comment
Beyondspace Posted October 28, 2020 Share Posted October 28, 2020 May you try this snippet in custom css, Settings->Design->Custom Css section[data-section-id="5f6b8bd78eae7008fe79186e"] .content-wrapper { padding: 0 !important; padding-top: calc(30vmax / 5); } 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
ilonapoutanen Posted October 29, 2020 Author Share Posted October 29, 2020 Unfortunately it didn't work. It gives "syntax error" for this line: padding-top: calc(30vmax / 5); Link to comment
Beyondspace Posted October 30, 2020 Share Posted October 30, 2020 6 hours ago, ilonapoutanen said: Unfortunately it didn't work. It gives "syntax error" for this line: padding-top: calc(30vmax / 5); Sorry it's the limitation of custom css panel, we may want to turn it into custom code Settings -> Advanced -> Code Injection -> Header <style> section[data-section-id="5f6b8bd78eae7008fe79186e"] .content-wrapper { padding: 0 !important; padding-top: calc(30vmax / 5); } </style> 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
ilonapoutanen Posted October 30, 2020 Author Share Posted October 30, 2020 Thanks, that fixed the problem. But now I have a new question: How can I still add padding to mobile view? Link to comment
Beyondspace Posted October 30, 2020 Share Posted October 30, 2020 <style> section[data-section-id="5f6b8bd78eae7008fe79186e"] .content-wrapper { padding: 0 !important; padding-top: calc(30vmax / 5); } @media only screen and (max-width: 600px) { section[data-section-id="5f6b8bd78eae7008fe79186e"] .content-wrapper { padding: 20px !important; } } </style> 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
ilonapoutanen Posted October 30, 2020 Author Share Posted October 30, 2020 Thanks for helping me, now it works! 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.