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); } Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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> Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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> Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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! 🙂 Beyondspace 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