Jump to content

How can I get a gradient image overlay?

Recommended Posts

I was looking at another site made on squarespace recently (amandafarias.nyc), and was wondering how to achieve horizontal gradient overlays over an image and add text on top. I do think that these changes (on that site specifically) were made using CSS because the gradient modified as the page width changed. I was wondering if anyone knew how to code for something like this? thank you.

Link to comment
3 hours ago, sqsnewbie said:

I was looking at another site made on squarespace recently (amandafarias.nyc), and was wondering how to achieve horizontal gradient overlays over an image and add text on top. I do think that these changes (on that site specifically) were made using CSS because the gradient modified as the page width changed. I was wondering if anyone knew how to code for something like this? thank you.

Hi. Do you have an example/or mockup?

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
On 7/26/2021 at 1:21 PM, sqsnewbie said:

hi tuanphan, here's an example of what i'm trying to achieve. 1933428492_Screenshot2021-07-26at2_20_53PM.thumb.png.22d7cbf1b1a4c6068cac986e1fc414f0.png

Can you share link to page in screenshot?

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
23 hours ago, sqsnewbie said:

amandafarias.nyc (homepage, scroll down) 

Okay. Can you share link to your site/Which section you want to add gradient?

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
  • 4 months later...
  • 1 year later...
On 9/5/2023 at 12:21 PM, izza.weihaas said:

Hi @tuanphan is there a way to accomplish this? I would like to add a gradient over the section background image from left to right (black 60% opacty to transparent) on the 3rd section title "22,400 people served each month in our community." 

https://fbcenla.squarespace.com/
password: design

 

Thanks for your help!

I see you figured it out with this CSS code?

section[data-section-id="64f69374633e4f108dedc366"] .section-background-overlay, section[data-section-id="64f693d4ae069407cbd67437"] .section-background-overlay {
    opacity: .75 !important;
    background: linear-gradient(to right,#000,transparent);
}

 

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.