How to Change Line-Spacing ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


Some web sites have text line-spacing different from the default.  Maybe one
and a half lines.  How do they do that?  Thanks.


Re: How to Change Line-Spacing ?

Quoted text here. Click to load it

You can try

 CSS line-height property
(line-height: 1cm;)

if looking for some more information ,
i am sure googling will definetly help you.

Re: How to Change Line-Spacing ?

Scripsit Talal Itani:

Quoted text here. Click to load it

They might do it some wrong way, but the simple way is

* { line-height: 1.5; }

in CSS. It's a good idea, because setting line-height magically protects
against some nasty browser bugs (Peekaboo bugs), in addition to fixing the
common problem that default line-height is too small for most fonts that
authors use on web pages, when lines can be fairly long.

The value of 1.5 is fairly large, though; usually 1.3 or 1.35 is sufficient.
It may _look_ like "one and a half lines", since e.g. 1.3 means 1.3 times
the font size, and the font size is normally larger than what people may see
as the height of the letters, since it means (roughly speaking) the distance
from the bottom of the lowest descender up to the top of the highest
ascender plus often a little extra spacing.

Jukka K. Korpela ("Yucca")

Site Timeline