oz11 Posted September 18, 2023 Share Posted September 18, 2023 (edited) Hye. Quick question!.. <details> <summary>Details</summary> Something small enough to escape casual notice. </details> How can I make this [ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details ] display on hover rather than "click"?? thanks.! Edited September 18, 2023 by oz11 Quote Link to comment https://forums.phpfreaks.com/topic/317300-hover-with-details-element/ Share on other sites More sharing options...
Barand Posted September 18, 2023 Share Posted September 18, 2023 By using a "title" attribute? Quote Link to comment https://forums.phpfreaks.com/topic/317300-hover-with-details-element/#findComment-1611941 Share on other sites More sharing options...
Zooapk Posted September 26, 2023 Share Posted September 26, 2023 (edited) The <details> element is used to create a disclosure widget that can be toggled open and closed. To add a hover effect, you can use CSS to style the element and create the desired behavior. Here's an example of how to do it: HTML: <details> <summary>Hover over me</summary> <p>Here is some hidden content that will be revealed when you hover over the summary.</p> </details> Edited September 26, 2023 by requinix removing link Quote Link to comment https://forums.phpfreaks.com/topic/317300-hover-with-details-element/#findComment-1612118 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.