HTML aus einem Tooltip mehrere machen?
Moin,
Ich habe ein Tooltip programmiert, aber wie kann ich aus dem einen ein weiteres machen so das bei währen dem hover Vorgang beide aufploppen? Ich hab den Code schon kopiert und 2. Tooltip wird auch angezeigt, aber wie füge ich dem 2. Jetzt Klassen hinzu, damit ich es an die richtige Stelle platzieren kann?
Do not use IDs for tooltips because they must be unique. I would also <) As these are block elements. For tooltips, inline elements like the <= 1 % Element, since this can also be accommodated in flow text in contrast to block elements.
HTML:
CSS:
LG medmonk
the two get the exact same position. Make a second ID (e.g.: “Tooltip2”) and enter another top value there, then it should show both
Thanks, but it only works the first show and the second. It will only be displayed if I hover at a certain point. Do you know how the two might get up at the same hover place?
Enter both tooltiptexts into a tooltip and see what happens
Use (single) IDs better classes.
CSS
And please post your source code and not bad photos in the future.
Use two different ids.
Each ID must be unique.
unique it does not have to be, the two parts overlap and therefore only one is displayed. In the Developement mode both tooltips should be there, but lie one above the other
IDS must be unique.
Double Ids always lead to errors and are not W3C compliant.
There is not even a compiler because HTML is not a programming language, but a markuplanguage that runs without compiler.
With the overlap you are right to specify other position, then something will appear.
Clear that double IDs feel to be mistaken, for good reason not W3C compliant (as you just mentioned). But there is no mistake, the compiler can compile it and it comes exactly what I mentioned above. Both parts overlap