Jump to content

Create gradient background in one section

Recommended Posts

Site URL: https://bumblebee-tuba-mxmm.squarespace.com/

I am trying to change the background of the Contact Us/Book a Demo section to a gradient.  I found the section ID and have been playing around adding the below to the overall CSS with no luck.  Obviously, I'm missing something!  Any help would be appreciated!!  I'm new to Squarespace but not CSS.  Thanks in advance!

 

[data-section-id="5ed929b20cfa72666c8da860"] .section-background {
background-image: linear-gradient(to right top, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;}
 

Screenshot 2020-06-17 11.27.49.png

Link to comment
  • Replies 3
  • Views 2.1k
  • Created
  • Last Reply
35 minutes ago, EAP said:

Site URL: https://bumblebee-tuba-mxmm.squarespace.com/

I am trying to change the background of the Contact Us/Book a Demo section to a gradient.  I found the section ID and have been playing around adding the below to the overall CSS with no luck.  Obviously, I'm missing something!  Any help would be appreciated!!  I'm new to Squarespace but not CSS.  Thanks in advance!

 

[data-section-id="5ed929b20cfa72666c8da860"] .section-background {
background-image: linear-gradient(to right top, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;}
 

Screenshot 2020-06-17 11.27.49.png

Code seem correctly to me, maybe you should try it in footer:
 

[data-section-id="5ed929b20cfa72666c8da860"] .section-background {
  background-image: -webkit-linear-gradient(bottom left, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;
  background-image: -moz-linear-gradient(bottom left, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;
  background-image: -o-linear-gradient(bottom left, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;
  background-image: linear-gradient(to top right, #c028b9, #9a21b0, #731da4, #491998, #001689) !important;
}

image.thumb.png.9a5bf78879f7bc67b45dc2824ac8cf2d.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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

Archived

This topic is now archived and is closed to further replies.


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