BedazzleProjects Posted July 19, 2023 Posted July 19, 2023 Hi! I've taken over the maintenance of a website and am very much a beginner with CSS. I've been asked if I can remove the drop shadow on the gallery captions of this website, but to keep them on the images themselves. This custom code is in the Design area, but I'm not sure what I'd need to remove or edit... .gallery-section .gallery-caption p { text-align: center; font-size: 20px; font-weight: 500; color: #FFFFF; text-transform: normal; line-height: 1.1em; font-family: inherit;} .gallery-section .gallery-grid-item img:hover { filter: grayscale(70%);} .sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor .gallery-caption { position: absolute !important; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 102%; text-align:center; opacity: 0; transition: all .3s ease; background-color: white; height: 100%; } .gallery-section .gallery-grid-item { filter: drop-shadow(1px 2px 5px #000000); } .image-block:hover { filter: drop-shadow(2px 2px 5px #000000); } .image-block { filter: drop-shadow(2px 2px 5px #000000); } .image-block:hover { filter: drop-shadow(2px 2px 5px #000000); } Thanks so much in advance if anyone can help!
Solution tuanphan Posted July 21, 2023 Solution Posted July 21, 2023 Change this code .gallery-section .gallery-grid-item { filter: drop-shadow(1px 2px 5px #000); } to this .gallery-section .gallery-grid-item .gallery-grid-item-wrapper { filter: drop-shadow(1px 2px 5px #000); } 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!)
BedazzleProjects Posted July 24, 2023 Author Posted July 24, 2023 On 7/21/2023 at 12:06 PM, tuanphan said: Change this code .gallery-section .gallery-grid-item { filter: drop-shadow(1px 2px 5px #000); } to this .gallery-section .gallery-grid-item .gallery-grid-item-wrapper { filter: drop-shadow(1px 2px 5px #000); } Perfect, thank you so much! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment