From 2909b474477c54a7c217eaa2eea3823c1c4316b6 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Sat, 13 Jun 2020 14:03:20 +0530 Subject: [PATCH] added tooltip for plot diagram --- index.html | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 1d5fdb4..37bd8e1 100644 --- a/index.html +++ b/index.html @@ -874,6 +874,33 @@ display: none; } } + + /* Tooltip container */ + .tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ + } + + /* Tooltip text */ + .tooltip .tooltiptext { + visibility: hidden; + width: 350px; + background-color: black; + color: #fff; + text-align: center; + padding: 5px 0; + border-radius: 6px; + + /* Position the tooltip text - see examples below! */ + position: absolute; + z-index: 1; + } + + /* Show the tooltip text when you mouse over the tooltip container */ + .tooltip:hover .tooltiptext { + visibility: visible; + }