My issue
Can someone explain this line-height property in percentage
Learning course: UX for Web developers
Problem Link: CodeChef: Practical coding for everyone
Can someone explain this line-height property in percentage
Learning course: UX for Web developers
Problem Link: CodeChef: Practical coding for everyone
When you define line-height to 150% you don’t multiply it by 1 , you multiply it by 1.5 .
Unitless line-height refers to the font-size of the element.
If your element has set font-size: 16px, do the simple math:
1.5 * 16px = 24px