Jump to content

Color background behind text across page width in Hayden 7.0

Recommended Posts

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

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 by Sebbo
Link to comment
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
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
  • 1 year later...

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 by ashleyysantanaa
Link to comment
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.