1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin
Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

CSS Line Spacing - Another Word for Line-Height

Friday July 10, 2009
One of the most frustrating parts of learning Web design is all the jargon that you have to learn. While you can browse through a glossary most people don't want to do that. And one of the more confusing terms in design is the spacing between lines of text. In print this is called leading, in CSS it's called line-height, but most people just think of it as line spacing. Learn how to affect your line spacing with CSS and the line-height property.

More About CSS Line Spacing

Comments
July 10, 2009 at 6:54 pm
(1) Alexander says:

An interesting thing to note (at least to me) is, that if you have a block or inline-block element with a width/height specified in EMs, the value of the font-size of the element will affect the width/height of that element (surprising at first, but logical when you think about it). But the line-height will not affect the width/height in this way.

July 11, 2009 at 1:50 pm
(2) Rob says:

Here is a sample line of how to in your CSS

p {line-height:1.55em;}

Pretty easy!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Community Forum
Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.