<div class="tooltip-container"> <div class="icon"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="50" height="50" > <path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm0 22c-5.518 0-10-4.482-10-10s4.482-10 10-10 10 4.482 10 10-4.482 10-10 10zm-1-16h2v6h-2zm0 8h2v2h-2z" ></path> </svg>
.tooltip-container { position: relative; display: inline-block; margin: 20px; } .icon { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center;