ROBEX Posted May 17 Posted May 17 (edited) New to CSS. Basically, I have a text block over an image block. I have already added some hover effects to the image block (scale image on hover, remove overlay on hover) but I need those effects to also work when I hover over the text block (see screenshots below). Any help is much appreciated! Note: the image also has a clickable link to another page on the website that I need to preserve as well. Link to page: https://ray-bullfrog-j67x.squarespace.com/config/ Edited May 20 by ROBEX
tuanphan Posted May 19 Posted May 19 Can you share link to this page? We can check problem easier. 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!)
ROBEX Posted May 20 Author Posted May 20 Link to page: https://ray-bullfrog-j67x.squarespace.com/config/ @tuanphan
Solution tuanphan Posted May 21 Solution Posted May 21 Try this CSS code (for second image: Vigorous..) you can repeat similar for other section[data-section-id="662ab20033c1543cb5e61ae3"]:has(div#block-c595f14b94a2ab0c0b6d:hover, div#block-7864ff382074315b5be5:hover) div#block-c595f14b94a2ab0c0b6d img { transform: scale(1.15) !important } section[data-section-id="662ab20033c1543cb5e61ae3"]:has(div#block-c595f14b94a2ab0c0b6d:hover, div#block-7864ff382074315b5be5:hover) div#block-c595f14b94a2ab0c0b6d .fluidImageOverlay { opacity: 0; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment