Controlling Space between Lines of Type


Use the line-height attribute to control the amount of space between lines of type. This trick is handy for improving the legibility of long passages of text, as you can see in Figure 49.3.

Figure 49.3. Increasing the line space improves legibility. Which paragraph would you rather read?


The line-height attribute takes a number and a unit for its value, like so:

 p {   font-size: 18px;   line-height: 27px; } 



Web Design Garage
Web Design Garage
ISBN: 0131481991
EAN: 2147483647
Year: 2006
Pages: 202
Authors: Marc Campbell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net