mkhairstylist Posted January 27, 2022 Share Posted January 27, 2022 Site URL: https://www.mkhairstylist.com/ Hi there! I have some text boxes that I used custom CSS to add a background color to, and on desktop it looks great! But when they stack on mobile, there's no space/padding between them. I tried to add some additional CSS to add padding on top of each block, but still no luck. Also no luck adding spacer blocks in. I'm self taught in HTML and CSS and am sure there's an easy way to do this that I'm just not seeing. Thanks in advance! CSS used for block bg color: #block-yui_3_17_2_1_1642214641397_9379 { background: #C78A66; padding: 50px; text-align: center; } Link to comment
Beyondspace Posted January 27, 2022 Share Posted January 27, 2022 2 hours ago, mkhairstylist said: Site URL: https://www.mkhairstylist.com/ Hi there! I have some text boxes that I used custom CSS to add a background color to, and on desktop it looks great! But when they stack on mobile, there's no space/padding between them. I tried to add some additional CSS to add padding on top of each block, but still no luck. Also no luck adding spacer blocks in. I'm self taught in HTML and CSS and am sure there's an easy way to do this that I'm just not seeing. Thanks in advance! CSS used for block bg color: #block-yui_3_17_2_1_1642214641397_9379 { background: #C78A66; padding: 50px; text-align: center; } Try adding to Home > Design > Custom Css @media only screen and (max-width: 767px) { section[data-section-id="61e2623d15030f1b54258701"] .sqs-layout > .row:last-child > .col { margin-bottom: 10px; } } Let me know how it works on your site Support me by pressing 👍 if this useful for you 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 🚀 Learn how to rank new pages on Google in 48 hours! 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment