<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tooltip on hover]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I try to implement a tooltip using CSS. I've used the example providend by W3School (<a href="https://www.w3schools.com/howto/howto_css_tooltip.asp" rel="nofollow ugc">https://www.w3schools.com/howto/howto_css_tooltip.asp</a>)</p>
<p dir="auto">I've a div with icones on the left of my page :<br />
<img src="/assets/uploads/files/1647108547471-capture-d-e-cran-2022-03-12-a-19.08.04.png" alt="Capture d’écran 2022-03-12 à 19.08.04.png" class="img-responsive img-markdown" /><br />
In the page builder, it seem to work fine.<br />
Unfortunately, when published, It changes my div size and diplays only in the menu div and not on top of the page.<br />
<img src="/assets/uploads/files/1647108657596-capture-d-e-cran-2022-03-12-a-19.10.46.png" alt="Capture d’écran 2022-03-12 à 19.10.46.png" class="img-responsive img-markdown" /></p>
<p dir="auto">Here is my CSS :<br />
.tooltip {<br />
position: relative;<br />
display: inline-block;<br />
border-bottom: 1px dotted #ccc;<br />
color: #006080;<br />
}</p>
<pre><code>.tooltip .tooltiptext {
    visibility: hidden;
    position: absolute;
    width: 120px;
    background-color: #555;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    padding: 5px 0;
    margin: 0 10px;
    border-radius: 6px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-right {
    top: -5px;
    left: 125%;
}

.tooltip-right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}
</code></pre>
<p dir="auto">And here is my HTML<br />
&lt;div class="tooltip ui-draggable-handle resizable-elem" style="text-align: center; color: rgb(242, 241, 253); font-size: 24px; border-bottom: 2px solid rgba(242, 241, 253, 0.5); margin-bottom: 10px !important; margin-top: 0px !important; padding: 0px 0px 10px !important; margin-left: 0px !important;" fs-d="24" link-target="page" link-local="Theme" margin-desktop-bottom="10" padding-desktop-top="0" padding-desktop-bottom="10" padding-desktop-left="0" padding-desktop-right="0" margin-desktop-left="0" link-anchor="Sophologie" local-anchor="&amp;id=2"&gt;&lt;i icon="far fa-bullseye-pointer" icon-rotation="" icon-animation="" class="appdrag-icon far fa-bullseye-pointer"&gt;&lt;/i&gt;<br />
&lt;span class="tooltiptext"&gt;Tooltip text&lt;/span&gt;<br />
&lt;/div&gt;</p>
<p dir="auto">Any idea ? Ive tried to change the z-index value... not working</p>
]]></description><link>https://community.appdrag.com/topic/1049/tooltip-on-hover</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 17:21:35 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/1049.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Mar 2022 18:13:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tooltip on hover on Sun, 13 Mar 2022 09:18:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a> Ok... Other solution... change your tooltip design <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /> instead of positioning right... Positioning bottom works fine... Not so good looking... But works fine</p>
]]></description><link>https://community.appdrag.com/post/4145</link><guid isPermaLink="true">https://community.appdrag.com/post/4145</guid><dc:creator><![CDATA[Olivier MAGNIN]]></dc:creator><pubDate>Sun, 13 Mar 2022 09:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to Tooltip on hover on Sun, 13 Mar 2022 06:59:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a> Hi joseph... I got it... I'll try.</p>
]]></description><link>https://community.appdrag.com/post/4144</link><guid isPermaLink="true">https://community.appdrag.com/post/4144</guid><dc:creator><![CDATA[Olivier MAGNIN]]></dc:creator><pubDate>Sun, 13 Mar 2022 06:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Tooltip on hover on Sun, 13 Mar 2022 06:23:28 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/729">@olivier-magnin</a>,<br />
since you have a left column which is a different section it won't work<br />
what you can do instead is to place your tooltip directly in the BODY tag, you can add it dynamically with JS like this</p>
<pre><code>$("body").append(`&lt;div class="tooltip"&gt;Hover over me
  &lt;span class="tooltiptext"&gt;Tooltip text&lt;/span&gt;
&lt;/div&gt;`)
</code></pre>
<p dir="auto">you'll need to adapt your css to position it correctly ...</p>
<p dir="auto">Another option, don't use a vertical section left menu <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /></p>
]]></description><link>https://community.appdrag.com/post/4143</link><guid isPermaLink="true">https://community.appdrag.com/post/4143</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Sun, 13 Mar 2022 06:23:28 GMT</pubDate></item></channel></rss>