Title Tooltip Is Not Shown When Span Is Child Of Anchor
For example, consider the following DOM structure.
document.getElementById("element's id").offsetHeight // will return 0
This is a bug in IE and workaround would be to do something like following:
a[title] span {
display: inline-block;
}
Solution 2:
Just a little mentioning of an IE mystery I just had in this context (IE9 in IE7-mode). My links with title-Tooltips have nested divs in it, and the tooltips show - but not if below there is a spacer-div with "clear:both" in its definition. After I removed the clear from the spacer, the tooltips showed. Before, they did not show in the row above the spacer, but they worked below the spacer. Yeah. Some more hours of experimenting to find an IE workaround.
Of course, a spacer without clear:both does not work very well (FF put it on top of other content above..). Finally it helped to put the title-atts to the inner div instead of the link itself.
Post a Comment for "Title Tooltip Is Not Shown When Span Is Child Of Anchor"