Jump to content

Add White Overlay to All Images

Recommended Posts

Site URL: https://harmonica-bugle-j4fm.squarespace.com/home-2

Hi there,

I'm trying to add a white 50% opaque overlay to all images on the website I am editing. I've tried several tutorials on editing list or gallery item blocks, but nothing I does seems to have an effect on the carousel elements. What I'm aiming for is the images to look faded, and when they are hovered over, become brighter (their original color, with no overlay). I want this to apply to all images in the two carousel blocks on the home page, as well as plain image blocks on other pages. What CSS can I use to accomplish this? Is part of the reason I'm struggling with tutorials due to fluid engine?

 

Thanks!

Link to comment

This should be possible, you might be running into a few differences with Fluid Engine that might be why tutorials aren't working.

Can you add a site wide password to your website so it can be viewed? 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
On 11/10/2022 at 2:19 AM, marmaladeisgood said:

I'm also trying to set the corner radius of all images to 50%. Can't figure that out either. Here's the password: camilla

Add to Design > Custom CSS

img {
    border-radius: 50% !important;
}
.fluid-image-container:after {
    content: "";
    background-color: rgba(0,0,0,0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    border-radius: 50%;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Code looks good @tuanphan, but might want to change the colour to background-color: rgba(255,255,255,0.5); for a 50% opaque white.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.