Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to Change Line-Spacing ?

Reply
Thread Tools

How to Change Line-Spacing ?

 
 
Talal Itani
Guest
Posts: n/a
 
      03-28-2007
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.


 
Reply With Quote
 
 
 
 
prash.marne@gmail.com
Guest
Posts: n/a
 
      03-28-2007
On Mar 28, 5:58 pm, "Talal Itani" <(E-Mail Removed)> wrote:
> 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.

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      03-28-2007
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.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
"Change your language and you change your thoughts." Suganya C Programming 0 04-29-2008 01:35 PM
Change the master GridView after detail change? Q. John Chen ASP .Net 0 11-15-2006 05:31 PM
Change the master GridView after detail change? Q. John Chen ASP .Net 0 11-15-2006 05:30 PM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM



Advertisments