Jump to content

reduce portfolio grid overlay size

Recommended Posts

Posted

Site URL: https://www.vanessastpier.com/motion

Hey there 🙂

I'm hoping to achieve an effect where the black overlay I currently have over my portfolio images, is slightly smaller than the size of the image itself (like 70% of the OG size.)  The image attached below is an example of someone who has achieved the look I'm after! Any ideas for code I can use? Thanks!

Screen Shot 2021-07-29 at 5.16.35 pm.png

  • Replies 1
  • Views 723
  • Created
  • Last Reply
Posted
On 7/29/2021 at 2:18 PM, vanessadesign said:

Site URL: https://www.vanessastpier.com/motion

Hey there 🙂

I'm hoping to achieve an effect where the black overlay I currently have over my portfolio images, is slightly smaller than the size of the image itself (like 70% of the OG size.)  The image attached below is an example of someone who has achieved the look I'm after! Any ideas for code I can use? Thanks!

Screen Shot 2021-07-29 at 5.16.35 pm.png

Add to Design > Custom CSS

/* Portfolio overlay smaller */
.portfolio-overlay {
    left: 10% !important;
    right: 10% !important;
    top: 10% !important;
    bottom: 10% !important;
    width: 80% !important;
    height: 80% !important;
}

 

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!)

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.