css - Can using line-height < 1 cause problems? -
i'm using specific font (font-size: 16px). when use line-height:1
, character's baseline not positioned @ bottom. there 2px gap:
if reduce line-height 0.75 better results. can align text in more precise way other elements. can implement spacings defined in graphic mockups without doing calculations. using padding-bottom can control line spacing.
does setting line-height < 1 have side-effects should aware of? supported today's browsers in concise way?
i not call "bad practice" though can cause ugly results when text wraps on multiple lines. using "alignment-hacks" said should no problem @ all.
edit:
maybe answer promised much. careful line-height property beacause mentioned may cause ugly results on multi-line text. if want keep website responsive margins on paragraphs (positive or negative) better solution.
Comments
Post a Comment