1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Trouble positioning tooltip beside an object

Discussion in 'Free Divi Community Forum' started by Will Munroe, Mar 11, 2024.

  1. Will Munroe

    Will Munroe New Member

    I am trying to build an interactive tooltip in Divi.

    It is to show references for an academic paper. So the results should look like this:

    https://imgur.com/sJPBVeD

    Here is a sample page that shows the desired result in action: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7463562/

    I am able to create the pop-up and trigger it when the user hovers over the reference number, but I am not able to accurately position the window beside the number.

    In the site shown, they have clearly been able to do this — so I know it is possible.

    They seem to be using some kind of library or function prefixed with "aria-" as many of the classes they are using have that same prefix.

    I tried Googling "css position one object next to another" but was unable to find much that was helpful. There was documentation on something called Aria Tooltip, but it seemed to be describing a class, not how to use it.

    I am presuming this will be done with a combination of this and jQuery but I am at a loss.

    Any help would be appreciated!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Kindly share your URL where you got the tooltip shown.
     
  3. Will Munroe

    Will Munroe New Member

    Thank you!

    https://modulate.clearintent.com/

    It is in the frequently asked questions accordion.

    I am starting to think the answer has something to do with position() but I am not really sure how it works yet.
     
    #3 Will Munroe, Mar 12, 2024
    Last edited: Mar 12, 2024
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Your tooltip doesn't seem to be working. All of them are just displayed on the site.

    If you wish for a pure CSS solution (but it won't readjust based on screen size), you may shift the ci-tooltip-content to be in the ci-tooltip-trigger. See below:
    Code:
    Log In or Sign Up to view this code.
    Then try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.