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?

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 plugin
If 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

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

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
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
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

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
  • 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

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

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.