I saw people using line height without specifying a unit, like this: line-height: 1.5;
What does the number represents? I’m guessing it’s a ratio so is it like em?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
line-height@ Mozilla Developer Network has a very good explanation (and examples) which is a easier to understand compared to theline-heightCSS specification.line-heightcan have the value specified in one of the following waysIn your case, you are using a
<number>which is described as: