Click to See Complete Forum and Search --> : "line spacing tag..."


munas
06-26-2003, 08:34 AM
dear seniors...

is there any html <tag> for "Line Spacing" ?

i want to make a paragraph aligned "justify"
and the line space as 2 as it is in MS-Office-Word.

thanx in advance.

-Munas.

PeOfEo
06-26-2003, 08:44 AM
There is no command to do that but just put <br><br> at the end of every line and it will make it double spaced.

DaveSW
06-26-2003, 08:54 AM
how about some css?

<p style="line-height:2em">text</p>

PeOfEo
06-26-2003, 08:56 AM
Oh wow I did not consider that. What is em though, did you mean cm?

DaveSW
06-26-2003, 08:58 AM
em depends on the font size chosen by the browser I think. At least, it varys with the font size you choose. You could use cm or mm or px etc.

PeOfEo
06-26-2003, 09:00 AM
I had never heard of that, well you learn something new every day. Unfortunatly its too early for me and I might not absorb that.

Charles
06-26-2003, 01:44 PM
From the CSS2 Specification:
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element. It may be used for vertical or horizontal measurement. (This unit is also sometimes called the quad-width in typographic texts.)
http://www.w3.org/TR/REC-CSS2/syndata.html#length-units