Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Leading

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
Is there anyway to control leading w/ HTML or CSS?
 
Yes, try this:

line-height: <value>
Possible Values: normal | <number> | <length> | <percentage>

The line-height property will accept a value to control the spacing between baselines of text. When the value is a number, the line height is calculated by multiplying the element's font size by the number. Percentage values are relative to the element's font size. Negative values are not permitted.

Example:
The line-height property could be used to double space text:
P { line-height: 200% }

Mickey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top