Line 2
Line 3
<span class="a-tooltip with-dots"> Hover me <span class="tooltiptext left"> Line 1 <br> Line 2 <br> Line 3 </span> </span>
.a-tooltip { position: relative; display: inline-block; } .a-tooltip .tooltiptext { visibility: hidden; width: 250px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px; position: absolute; z-index: 10; top: 50%; transform: translate(0, -50%); left: 100%; opacity: 0; transition: opacity 0.5s ease; } .a-tooltip .tooltiptext::after { content: ""; position: absolute; top: 50%; right: 100%; margin-top: -5px; border-width: 5px; border-style: solid; border-color: transparent black transparent transparent; } .a-tooltip:hover .tooltiptext { visibility: visible; opacity: 1; transition: opacity 0.5s ease; } .a-tooltip .with-dots { border-bottom: 1px dotted black; }
253900cookie-checkCSS Tooltip