Jump to content

Is there a way to have a background with two colors?

Recommended Posts

Site URL: https://earthworm-helicon-x36b.squarespace.com/config/design/custom-css

site pw: 123

I am trying to create the picture below on my Squarespace site. My issue is that when I use an image as a background the text becomes white on the section I'd like for it to stay black on. Is there a way to custom code to either maybe have the right section be a custom code block with no margins to achieve the same effects?

Thanks so much,


Zach

Section.png

Link to comment
22 hours ago, zs366a said:

Site URL: https://earthworm-helicon-x36b.squarespace.com/config/design/custom-css

site pw: 123

I am trying to create the picture below on my Squarespace site. My issue is that when I use an image as a background the text becomes white on the section I'd like for it to stay black on. Is there a way to custom code to either maybe have the right section be a custom code block with no margins to achieve the same effects?

Thanks so much,


Zach

Section.png

Hi,

You can try adding to Home > Design > Custom Css

section[data-section-id="6193e6c4fc947726e0868b56"] .section-background img {
  display: none;
}

section[data-section-id="6193e6c4fc947726e0868b56"] .section-background {
  background: linear-gradient(to right, #000 50%, #0062d1 50%);
}

section[data-section-id="6193e6c4fc947726e0868b56"] .sqs-block-content * {
  color: #fff !important;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

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

My testing result

image.thumb.png.59874e826da127bc9507f9640af2c6b3.png

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

I've figure out that the reason you can not set background color is the img in section background already has the white and blue color. 

image.thumb.png.463f2035f8801d065b7203d8d7c3388f.png

Therefore i remove the img and add background color for section background

 

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

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.