ss_qstns Posted September 3, 2019 Share Posted September 3, 2019 (edited) If I had a bullet list like the following: Product A Product B Product C Product D Is there a way, that if a visitor hovers with their mouse or the touch of their finger on a mobile device will popup a floating window with additional text description? Edited September 3, 2019 by ss_qstns Initial Revision Beyondspace 1 Link to comment
Ciodensky Posted November 9, 2021 Share Posted November 9, 2021 On 9/4/2019 at 2:06 AM, ss_qstns said: If I had a bullet list like the following: Product A Product B Product C Product D Is there a way, that if a visitor hovers with their mouse or the touch of their finger on a mobile device will popup a floating window with additional text description? Hi @qstns, were you able to find solution with this? I have the save issue. Beyondspace 1 Link to comment
Beyondspace Posted November 9, 2021 Share Posted November 9, 2021 27 minutes ago, Ciodensky said: Hi @qstns, were you able to find solution with this? I have the save issue. Could you share your site url with the use case BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Ciodensky Posted November 9, 2021 Share Posted November 9, 2021 1 hour ago, bangank36 said: Could you share your site url with the use case Here's my website: https://www.xystema.com/pricing password: 061298 I haven't tried it yet but the bullet list are there. I don't know how to start. Link to comment
tuanphan Posted November 10, 2021 Share Posted November 10, 2021 @Ciodensky You can add this CSS /* Mender First Li */ div#block-yui_3_17_2_1_1636110200873_17984 ul { li:nth-child(1):after { content: "show content on hover first li"; display: block; position: absolute; z-index: 999; background-color: rgba(0,0,0,0.75); top: -30px; color: white; border-radius: 5px; padding: 5px 10px; opacity: 0; } li:nth-child(1) { position: relative; } li:nth-child(1):hover:after { opacity: 1; }} 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!) Link to comment
Ciodensky Posted November 13, 2021 Share Posted November 13, 2021 On 11/10/2021 at 8:45 PM, tuanphan said: @Ciodensky You can add this CSS /* Mender First Li */ div#block-yui_3_17_2_1_1636110200873_17984 ul { li:nth-child(1):after { content: "show content on hover first li"; display: block; position: absolute; z-index: 999; background-color: rgba(0,0,0,0.75); top: -30px; color: white; border-radius: 5px; padding: 5px 10px; opacity: 0; } li:nth-child(1) { position: relative; } li:nth-child(1):hover:after { opacity: 1; }} Hi @tuanphan, Very nice! thank you. But I just want to clarify few things. I changed the line number to 5 for this clarification which when I hover the floating text appear (see screenshot)—no issue with this. But when I hover on the line 3 and 4, the floating text also appears. Looks like I missed something here. But I am no coder. Need some more help here @tuanphan. Thank you. Link to comment
tuanphan Posted November 15, 2021 Share Posted November 15, 2021 Try remove top: -30px; in the code I sent & check again 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!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment