I have created a custom css tooltip, however the tooltip width is very narrow (only 1-2 words per line).
I would like the tooltip size to be dynamically generated, as I will be using it in a few places with different lengths of text (the text may also change at a later date). Another reason I need it to be dynamic is that it needs to allow for browser resizing and mobile view.
I have done a bit of research and played around with (not limited to) the following properties:
width: auto; /*doesn't change anything*/ max-width: ;/*max and min not useful as I want it to be dynamic*/ min-width: ; white-space: normal; /*neither change anything*/ text-wrap: normal;
None of the above seem to give me a solution.
Thanks in advance for any help.