calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 482 forks source link

Annotation including HTML br or CSS display: block; for the first word in line is displayed at the opposite end #787

Closed nevenjovanovic closed 4 years ago

nevenjovanovic commented 4 years ago

When annotations are styled as HTML, and includes a br element (or CSS display: block;), the annotation of the first word (in lines other than the first one in div or p!) is displayed at completely the opposite end of the line, too far from its word. It is not so for other words in line. The problem goes away when br or display:block formatting is removed from annotation. See a working example here: http://croala.ffzg.unizg.hr/grcgram/test.html JQuery 1.10.0, tooltipster v4.2.7.

louisameline commented 4 years ago

I see no issue using Chrome. I suspect that what you think is abnormal is the exepected behavior when you use display-block elements. Use inline or inline-block elements only. Thank you