Found 2201 Articles for HTML

What is the difference between height and line-height?

Alex Onsman
Updated on 08-May-2020 11:06:32

3K+ Views

Height is the vertical measurement of the container, for example, height of a div.Line-height is a CSS property to specify the line height i.e. the distance from the top of the first line of text to the top of the second. It is the space between the lines of two paragraphs.ExampleYou can try to run the following code to learn the difference between height and line height:Live Demo                    .height {             height: 20px;          }          .lheight ... Read More

Advertisements