I was wondering if there is any good way to check wether the texts of two html elements overlap? Carification: Checking for overlap between elements is no Problem I want to check wether the actual texts inside 2 Elements overlap.
Say I have the elements
<span id="green">Green is my cÔlor</span>
<span id="blue">blue is my color</span>
How could I check wether the texts of those 2 elements overlap? We can assume I have access to the jQuery Object of the given elements.
Edit: What I'm trying to say is that I can detect wether the borders of elements intercect, but in case of text there is the possibility that a good part of the space above and below each character is "unused".