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: 9999; /* 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; | ||
width: 400px; /* Set the width to 400px */ | |||
word-wrap: break-word; /* Break long words to fit within the | word-wrap: break-word; /* Break long words to fit within the width */ | ||
white-space: normal; /* Allow text to wrap within the tooltip */ | white-space: normal; /* Allow text to wrap within the tooltip */ | ||
} | } | ||