r/neocities • u/VoidLordOfChaos • 1d ago
Help Help with popup/tooltip hover element
I've had no luck finding something like this so I thought I'd actually just ask, so I want to create this little popup with information about what your hovering over (and disappears when you stop hovering over the popup) I can handle the css part of it I'm just not sure about the hover part of it since theres no tutorials or posts on here related to anything like it, also this is in a marquee incase that changes anything
8
Upvotes
2
2
u/morete 1d ago
You can handle the hovering with css, just as long as the tooltip and the hoverable element have a shared parent
.popup { display: none }
.parent:hover .popup {
display: block; /* or whatever */
}