Overview - Line height
What is it?
Line height in CSS controls the vertical space between lines of text. It determines how tall each line of text appears, affecting readability and the overall look of paragraphs. By adjusting line height, you can make text easier to read or create a specific style. It works like spacing between rows in a table but for text lines.
Why it matters
Without line height control, text can look cramped or too spread out, making reading uncomfortable or confusing. Proper line height improves clarity and user experience on websites, especially for long paragraphs or different screen sizes. It helps designers create visually balanced pages that guide the reader’s eye smoothly.
Where it fits
Before learning line height, you should understand basic CSS properties like font size and how text flows in HTML. After mastering line height, you can explore advanced typography techniques, responsive design for different devices, and CSS layout systems like Flexbox and Grid that also affect spacing.