How to Change Line-Spacing ?

T

Talal Itani

Hello,

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

T.I.
 
P

prash.marne

Hello,

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

T.I.


You can try

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

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

Jukka K. Korpela

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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top