html - How to set max-height of text equal to line number -
i have text, changed dynamically , want prevent more 3 lines example (taking account font-size , line-height properties).
is possible achieve in css only?
the use case using external library, sets line-height of font, cannot calculate dynamically in css.
also have tried 3em, 6ex, 4.5ch, after this answer, , did not work me, because not take account line-height property.
example http://joxi.ru/48ankxpinxjgro
Comments
Post a Comment