LB4 Posted January 19, 2022 Share Posted January 19, 2022 Site URL: https://www.erictomandbruce.com/ I’m using the Template York and am trying to make full bleed, edge to edge background colour behind some of the text blocks on my page. Currently I’m using this code, but am only able to get it to fill in just around the text rather than the whole page. #block-yui_3_17_2_1_1639016212732_4739{ background: #fbe5ee; padding: 40px; text-align: center; } Is anyone able to help me with some code to extend the coloured area to the edge of the page, and have it resize to fit if the screen size is altered? Link to comment
Beyondspace Posted January 19, 2022 Share Posted January 19, 2022 1 hour ago, LB4 said: Site URL: https://www.erictomandbruce.com/ I’m using the Template York and am trying to make full bleed, edge to edge background colour behind some of the text blocks on my page. Currently I’m using this code, but am only able to get it to fill in just around the text rather than the whole page. #block-yui_3_17_2_1_1639016212732_4739{ background: #fbe5ee; padding: 40px; text-align: center; } Is anyone able to help me with some code to extend the coloured area to the edge of the page, and have it resize to fit if the screen size is altered? Try #block-27cc92f7a135477c12aa { background: #fbe5ee; padding: 0 5%; margin: 0 -5%; } Let me know how it works on your site tuanphan 1 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
Beyondspace Posted January 19, 2022 Share Posted January 19, 2022 My testing result 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
LB4 Posted January 20, 2022 Author Share Posted January 20, 2022 This works well, thank you so much! Is there also a way to add some padding to the top and bottom of the pink area above and below the text , to match the padding on the sides? Link to comment
tuanphan Posted January 21, 2022 Share Posted January 21, 2022 On 1/20/2022 at 7:50 AM, LB4 said: This works well, thank you so much! Is there also a way to add some padding to the top and bottom of the pink area above and below the text , to match the padding on the sides? It looks like you solved with this CSS? #block-27cc92f7a135477c12aa { background: #fbe5ee; padding: 35px; text-align: center; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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