Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto position tooltip when exceed on browser's width

Tags:

jquery

css

What I want to happen is when the tooltip width exceeds to browser's viewable area, it will automatically re-position itself, so the content can be viewed fully. The tooltip should not overlap on referenced div. The tooltip should not resize width or height when re-positioning itself. Please help.

Here is my sample Code

like image 961
fiberOptics Avatar asked Nov 03 '22 20:11

fiberOptics


1 Answers

Are you trying to do this?

See Demo: http://jsfiddle.net/rathoreahsan/mpDXY/

Reference Website: http://www.javascriptkit.com/script/script2/htmltooltip.shtml

like image 82
Ahsan Rathod Avatar answered Nov 11 '22 16:11

Ahsan Rathod