8,960
edits
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
top: 50%; /* Center vertically relative to the text */ | top: 50%; /* Center vertically relative to the text */ | ||
left: 50%; /* Center horizontally relative to the text */ | left: 50%; /* Center horizontally relative to the text */ | ||
transform: translate(- | transform: translate(-20%, -50%); /* Center the tooltip */ | ||
opacity: 0; | opacity: 0; | ||
transition: opacity 0.3s ease-in-out; | transition: opacity 0.3s ease-in-out; | ||
width: 600px; /* Set the width to 400px */ | width: 600px; /* Set the width to 400px */ | ||
word-wrap: break-word; /* Break long words to fit within the width */ | 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 */ | ||