Perfecting the Position
As you can see, the Tooltip that currently appears needs to be repositioned. In this lesson, we will try to reposition it to get a neater look!
We'll cover the following...
Moving the tooltip to Javascript #
Let’s move the tooltip generation into JavaScript and have it replace the dot that we were testing with.
I also gave the text some properties so that it has some space for further confirmation that the tooltip is positioned correctly. Since absolute positioning’s top and left attributes tell the tooltip to align its top-left corner at the specified ...