HomeНаука и техникаRelated VideosMore From: Chris Walker

CSS How To: line-height

17 ratings | 3332 views
Line height in CSS determines how much space should be taken up by each line. This CSS property does not affect the size of the text. It only affects how much space is reserved for each line. There are several measurements available for line height. in (inches) mm (millimeters) cm (centimeters) pt (point or 1/72 of an inch) pc (pica or 12 pt) px (pixel or a dot on the computer screen) em (current font size) ex (half font height) % (percent of the letter height) http://www.technoblogical.com/web-design/ Providing training since last Tuesday http://www.technoblogical.com Thanks for watching!
Html code for embedding videos on your blog
Text Comments (1)
seephor (5 years ago)
Good video. I think the most appropriate unit to use for line-height is percentage because the line-height property is independent of the font size. Using a percentage makes it dependent on the font size which is what you want most of the time at least.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.