I have a jQuery tooltip indicated in the following link:
http://jsfiddle.net/ronnykroy/amYZW/2/
HTML:
<div id="parent"> <div id="child" title="It has been a very long text"> </div> </div>
CSS
#parent{ position:absolute; width: 500px; height: 200px; background-color:#00f; } #child{ position:absolute; left:400px; width: 100px; height:150px; background-color: #f00; } .tooltipclass{ width: 50px; background-color: #ffffff; color: #000000; }
Using jQuery:
$("#child").tooltip({ track: true, tooltipClass: "tooltipclass" });
Now that I hover over the "child", I do not want the tooltip to move outside the parent. The hint should be limited inside the "parent" dynamically.
source share