0

I need to understand how the height of the div is computed in the following cases :

<div id="div20" style="font-family:Arial; font-size:50px;line-height:16px;">
  <img width="5" height="5">
</div>

On my computer, with chromium, the result is 25 (same as FF).

<div id="div30" style="font-family:Arial; font-size:30px;line-height:16px;">
  <span style="font-size:10px">TEXT</span>
</div>

On my computer, with chromium, the result is 23 (same as FF).

Temani Afif
  • 245,468
  • 26
  • 309
  • 415

0 Answers0