8,960
edits
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
/* Positioning and size */ | /* Positioning and size */ | ||
position: absolute; | position: absolute; | ||
z-index: | z-index: 11; /* Ensure it's on top of all objects */ | ||
top: 100%; /* Position below the text */ | top: 100%; /* Position below the text */ | ||
left: 50%; | left: 50%; | ||
| Line 26: | Line 26: | ||
opacity: 0; | opacity: 0; | ||
transition: opacity 0.3s ease-in-out; | transition: opacity 0.3s ease-in-out; | ||
max-width: | max-width: 1000px; /* Limit the width to 300px */ | ||
word-wrap: break-word; /* Break long words to fit within the max width */ | word-wrap: break-word; /* Break long words to fit within the max width */ | ||
white-space: normal; /* Allow text to wrap within the tooltip */ | white-space: normal; /* Allow text to wrap within the tooltip */ | ||