I have a tooltip element which is displayed when hovering over certain elements.
I would like the tooltip to be positioned above the normal element as expected but in the case where the tooltip is too large and escapes the window, I need this to NOT happen.
How can I have an element which is absolutely positioned and also never displays out of view?
Edit: Preferably using CSS...