Sebbo Posted January 10, 2021 Share Posted January 10, 2021 Does anyone know the code to place a coloured background behind a block of text that spans the entire page width without padding on the sides? This is for the Hayden template, 7.0. Thanks! Beyondspace 1 Link to comment
Beyondspace Posted January 11, 2021 Share Posted January 11, 2021 3 hours ago, Sebbo said: Does anyone know the code to place a coloured background behind a block of text that spans the entire page width without padding on the sides? This is for the Hayden template, 7.0. Thanks! could you share the site url to check easier? 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
Sebbo Posted January 11, 2021 Author Share Posted January 11, 2021 (edited) Yes, I'm working on www.elevatedphotos.ca. You can see there is a black text box but I need that to span the entire width of the page. Thanks for your help! I know you can do this with 7.1 but I just don't have the time to manually transfer the entire site and its settings, SEO, etc. Isn't there a faster way? Can we pay someone to do this? Edited January 11, 2021 by Sebbo Link to comment
tuanphan Posted January 13, 2021 Share Posted January 13, 2021 On 1/11/2021 at 8:06 PM, Sebbo said: Yes, I'm working on www.elevatedphotos.ca. You can see there is a black text box but I need that to span the entire width of the page. Thanks for your help! I know you can do this with 7.1 but I just don't have the time to manually transfer the entire site and its settings, SEO, etc. Isn't there a faster way? Can we pay someone to do this? Add to Design > Custom CSS /* Fullwidth colored text block */ .collection-type-index .page-content { max-width: 100%; padding-left: 0; padding-right: 0; } div#page-58b244c837c5814e3bd54a22 .span-12>div:not(:nth-child(7)) { max-width: 1020px; padding-left: 32px; padding-right: 32px; margin-left: auto; margin-right: auto; } html, body { overflow-x: hidden; } 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
Sebbo Posted January 13, 2021 Author Share Posted January 13, 2021 Quote /* Fullwidth colored text block */ .collection-type-index .page-content { max-width: 100%; padding-left: 0; padding-right: 0; } div#page-58b244c837c5814e3bd54a22 .span-12>div:not(:nth-child(7)) { max-width: 1020px; padding-left: 32px; padding-right: 32px; margin-left: auto; margin-right: auto; } html, body { overflow-x: hidden; } Thanks, but this also cleared the padding on the rest of the site. Is there a way to apply to just the text box? Link to comment
tuanphan Posted January 17, 2021 Share Posted January 17, 2021 On 1/13/2021 at 10:24 AM, Sebbo said: Thanks, but this also cleared the padding on the rest of the site. Is there a way to apply to just the text box? You can remove the code & I will check again 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
Sebbo Posted January 19, 2021 Author Share Posted January 19, 2021 @tuanphan Your code is seen on this page - https://www.elevatedphotos.ca/ Here is a page without the code - https://www.elevatedphotos.ca/real-estate-photo-gallery-interiors Do you know how to add back the padding after your code on the first page? Link to comment
ashleyysantanaa Posted April 19, 2022 Share Posted April 19, 2022 (edited) I am trying to do something similar on my site where the background reaches the far left side of the screen but the content still has the side margins and maximum page width. Basically I want the background of that section to come out from the far left side of the screen and stop where it hits the right margin. Anyone know how to do this? https://kaytaylersalon.squarespace.com/about Edited April 19, 2022 by ashleyysantanaa Link to comment
tuanphan Posted April 22, 2022 Share Posted April 22, 2022 On 4/19/2022 at 11:40 PM, ashleyysantanaa said: I am trying to do something similar on my site where the background reaches the far left side of the screen but the content still has the side margins and maximum page width. Basically I want the background of that section to come out from the far left side of the screen and stop where it hits the right margin. Anyone know how to do this? https://kaytaylersalon.squarespace.com/about You mean make black background on about us section touch right of screen? Add to Design > Custom CSS [data-section-id="625ed83de6dd993b40a7e4a8"] .content-wrapper { padding-right: 0 !important; } 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
Create an account or sign in to comment
You need to be a member in order to leave a comment