Jelle
KPCKevin Powell - Community
•Created by Jelle on 1/6/2025 in #front-end
Fixed background-gradient on menu items
That didn't work yesterday, but I might have done something wrong. Because this is working fine now... Thanks!
15 replies
KPCKevin Powell - Community
•Created by Jelle on 1/6/2025 in #front-end
Fixed background-gradient on menu items
Oh... wow. That is very much easier
15 replies
KPCKevin Powell - Community
•Created by Jelle on 1/6/2025 in #front-end
Fixed background-gradient on menu items
Hi all, I'm back, and have tried several things. First the
background-position: inherit
. That doesn't seem to change a thing. Maybe I am doing it wrong, but for me it's not working.
Furthermore, the pseudo element approach seems fit, but unfortunately not for my use case. I did not tell, because it didn't seem important. But the background needs to clip to the text. So not the menu-items will share the gradient, alle the text in the menu items need to share the gradient.15 replies
KPCKevin Powell - Community
•Created by Jelle on 1/6/2025 in #front-end
Fixed background-gradient on menu items
Thanks all for the replies! Turns out Discord on my phone does not sent notifications 🫣
Thanks Kevin and Chris for clarifying the function of
background-attachment: fixed;
.
I’ll try both the pseudo element approach and the background-position: inherit
solution tomorrow when I’m back at the office. I’ll update here.15 replies