How to increase or decrease space between two lines in same paragraph?
Question says everything. How to do it with CSS?
I have also created a fiddle h开发者_运维技巧ere.
Use the line-height!
ie:
p {
line-height:20px;
}
Use line-height
.test{
line-height:40px;
}
http://jsfiddle.net/jasongennaro/jn3Vw/1/
You can set the value to anything: percentage or number, which will be multiplied by the font
value or you can use a measurement like px
or em
.
See more here: http://reference.sitepoint.com/css/line-height
use line-height property
line-height:100% or line-height:200%
精彩评论