astn_mrtn Posted November 18, 2022 Posted November 18, 2022 (edited) I'm trying to sort out the CSS that will allow me to change the overlay color of individual images. On my home page I'd like each of project to have a different color when you hover over it. Currently the overlay is white for all images. I imagine it's a simple piece of code, but I haven't been able to figure this one out. Thanks for any help! Link to my site below. https://www.astnmrtn.com/ Edited November 18, 2022 by astn_mrtn
Solution Beyondspace Posted November 19, 2022 Solution Posted November 19, 2022 6 hours ago, astn_mrtn said: I'm trying to sort out the CSS that will allow me to change the overlay color of individual images. On my home page I'd like each of project to have a different color when you hover over it. Currently the overlay is white for all images. I imagine it's a simple piece of code, but I haven't been able to figure this one out. Thanks for any help! Link to my site below. https://www.astnmrtn.com/ Try adding to Home > Design > Custom Css section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(1) .portfolio-overlay { background-color: red; } section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(2) .portfolio-overlay { background-color: blue; } Here is the code for setting overlay color for the first and the second item Support me by pressing 👍 or marking as solution if this useful for you astn_mrtn and tuanphan 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Beyondspace Posted November 19, 2022 Posted November 19, 2022 My testing Curious3791 and astn_mrtn 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
astn_mrtn Posted November 19, 2022 Author Posted November 19, 2022 18 hours ago, Beyondspace said: Try adding to Home > Design > Custom Css section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(1) .portfolio-overlay { background-color: red; } section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(2) .portfolio-overlay { background-color: blue; } Here is the code for setting overlay color for the first and the second item Support me by pressing 👍 or marking as solution if this useful for you Thank you so much! Exactly what I was looking for. I really appreciate it. Beyondspace 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment