title: How do I find space between lines in HTML?
body: <p>This is a follow-up question to a <a href="https://stackoverflow.com/questions/12537001/find-location-of-line-on-screen">previous question of mine</a>. I am trying to find a way to find the exact location of each line of text in an element.</p>
  <p>I was able to find the css <code>lineHeight</code> attribute (see previous answer). The problem is that the height of my element is slightly larger than the cumulative height of the number of lines times the <code>lineHeight</code>.</p>
  <p><em>An example:</em></p>
  <p>I have a <code>&lt;p&gt;</code> that is 2010px tall without padding, border, or margin, (<code>scrollHeight</code>, <code>offsetHeight</code>, and <code>clientHeight</code> all report the same,) and has 89 lines in the browser. The <code>lineHeight</code> of the <code>computedStyle()</code> is 22.</p>
  <p>2010 / 22 = 91.37 lines</p>
  <p>With small elements I can just floor the value to get the correct number of lines, but run into the above problem with larger elements where I cannot accurately get the exact number of lines.</p>
  <p><strong>My assumption is that there is some small space between these lines of text I am not taking into account. Any idea how to find it?</strong> Does it have to do with font types? Is it automatically set by the browser? Any documentation would be especially helpful.</p>
  <p>Thanks!!</p>
  <p><em><strong>Update:</strong></em></p>
  <p>So I have 26 superscripts in my <code>&lt;p&gt;</code>, each of which protrude up 2px, extending the <code>lineHeight</code> of those lines on which they appear to 24px, which accounts for my missing space. (Woot! Thanks so far!)</p>
  <p><strong>I guess the boat I am in now is that I need to find a way to dynamically calculate how much they protrude above the normal top of the line, or discover how much higher the baseline of a <code>&lt;sup&gt;</code> is above the normal baseline. (Vice-versa for a <code>&lt;sub&gt;</code>.)
  Otherwise, could I determine that with CSS?</strong></p>