﻿
.mytooltip {
    position: relative;
    display: inline-block;
    /* border-bottom: 1px dotted black; If you want dots under the hoverable text */
}

/* mytooltip text */
.mytooltip .mytooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
 
    /* Position the mytooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    left: 100%; 
    bottom: 50%;
    margin-left: -250px; /* Use half of the width (120/2 = 60), to center the 
    /* Fade in mytooltip - takes 1 second to go from 0% to 100% opac: */
    opacity:0;
    transition: opacity 1s;
    }

/* Show the mytooltip text when you mouse over the mytooltip container */
.mytooltip:hover .mytooltiptext {
    visibility: visible;
    opacity: 1;
    }

.mytooltip .mytooltiptext::after {
    content: " ";
    position: relative;
    top: 50%; /* Pointer at the bottom of the mytooltip */
    left: -50%; /*Pointer horizontally in the centre of the tooltip*/
    /*margin-left: -5px;*/
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
    text-align:center;
