title: Finding positionally closest div to another
body: <p><img src="https://cl.ly/2S1f0Q251O2L361S1W2F/1.jpg" alt="a busy cat"></p>
  
  <p>Hi, how I would find line lengths highlighted with other color (with question marks) on the picture above? Rectangles are just divs with position absolute.</p>
  
  <p>My goal is to find 'the closest' div to the green one, but 'closest' is a quite abstract definition, so I decided that 'closest' would be one with shortest highlighted line on the picture above. Maybe there are other simpler ways to find 'closest' div??</p>