Line-height issue in DOM PDF | Sololearn: Learn to code for FREE!


Line-height issue in DOM PDF

I'm writing an html file transfering to PDF by DOM PDF. There is a span with display: inline-block; and a line break. A distance between the first and the second lines is too big, though there is no height set for an element. No matter which line-height I use - a distance stays the same. How to solve a problem?

4/20/2021 9:34:38 AM

Sona Sarkisian

1 Answer

New Answer


try using very align to your style so that the placement by dom pdf would be much closer to what you see in your browser