oz11 Posted September 18 Share Posted September 18 (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 by oz11 Quote Link to comment Share on other sites More sharing options...
Barand Posted September 18 Share Posted September 18 By using a "title" attribute? Quote Link to comment Share on other sites More sharing options...
Zooapk Posted Tuesday at 04:03 AM Share Posted Tuesday at 04:03 AM (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 Tuesday at 05:43 AM by requinix removing link Quote Link to comment 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.