Jump to content

Adding section gradients to image backgrounds so sections flow into each other (Issue 7.1)

Recommended Posts

Site URL: https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2

https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 

PW:  The@ter2022

Hi all! 

I am tying to add a color gradient so that the purple section blends into the image section above it. I've been able to do this in the past, but on this page, it doesn't look good on small screens / mobile. Looks like the overlay isn't tall enough so a gap is showing. I tried adding "height" to my code to no avail. Anyone got the trick to fix? Is it that my image itself isn't tall enough?

Thanks!

Rachel 

 

This is the CSS I added: 

/*blood moon */
section[data-section-id="62422a5b8f70047a56eea75d"]
.content-wrapper
{
  width:100%!important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(77, 72, 106, 1));
  z-index: 1;
  max-width: inherit;
}

PS 

@julians - saw you asked a similar questions so  I'm adding you! 
 

Screen Shot 2022-04-05 at 2.18.50 PM.png

Screen Shot 2022-04-05 at 2.19.05 PM.png

Link to comment
  • Replies 2
  • Views 922
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

On 4/6/2022 at 4:28 AM, raeroshow said:

Site URL: https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2

https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 

PW:  The@ter2022

Hi all! 

I am tying to add a color gradient so that the purple section blends into the image section above it. I've been able to do this in the past, but on this page, it doesn't look good on small screens / mobile. Looks like the overlay isn't tall enough so a gap is showing. I tried adding "height" to my code to no avail. Anyone got the trick to fix? Is it that my image itself isn't tall enough?

Thanks!

Rachel 

 

This is the CSS I added: 

/*blood moon */
section[data-section-id="62422a5b8f70047a56eea75d"]
.content-wrapper
{
  width:100%!important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(77, 72, 106, 1));
  z-index: 1;
  max-width: inherit;
}

PS 

@julians - saw you asked a similar questions so  I'm adding you! 
 

Screen Shot 2022-04-05 at 2.18.50 PM.png

Screen Shot 2022-04-05 at 2.19.05 PM.png

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 640px) {
  section[data-section-id="62422a5b8f70047a56eea75d"]  .content-wrapper {
    padding-top: 31vmax !important;
  }
}

Let me know how it works on your site

Edited by bangank36

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

My testing

image.png.4b81f2c4f34af4f3df4db544a5417265.png

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

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.