Text formatting CSS query

B

Brian Tozer

How do I control with CSS the vertical spacing between a row of text and the
wrapped text that automatically flows onto the next line when the text
string is longer than the available width?

Thanks
Brian Tozer
 
M

Mark Parnell

Sometime around Fri, 3 Oct 2003 18:30:20 +1200, Brian Tozer is reported to
have stated:
How do I control with CSS the vertical spacing between a row of text and the
wrapped text that automatically flows onto the next line when the text
string is longer than the available width?

Thanks
Brian Tozer

..text {line-height: 1.2em;}

Season to taste.
 
T

Toby A Inkster

Brian said:
How do I control with CSS the vertical spacing between a row of text and the
wrapped text that automatically flows onto the next line when the text
string is longer than the available width?

line-height.

The default in most browsers seems to be line-height:1.25em;
 
J

Jukka K. Korpela

Brian Tozer said:
How do I control with CSS the vertical spacing between a row of
text and the wrapped text that automatically flows onto the next
line when the text string is longer than the available width?

line-height
 
M

Mark Parnell

Sometime around Fri, 3 Oct 2003 17:17:03 +1000, brucie is reported to have
stated:
thats why mommy sent me to school in a dress
^^^^^

Since when are you American?
 
B

brucie

How do I control with CSS the vertical spacing between a row of text and the
wrapped text that automatically flows onto the next line when the text
string is longer than the available width?

color:blue;

ok, not really but i just didn't want to be the same as everyone else.
thats why mommy sent me to school in a dress. no other little boys
went to school in a dress. i was special.
 
J

Jukka K. Korpela

Toby A Inkster said:
The default in most browsers seems to be line-height:1.25em;

No, that would be very bad. It might be close to
line-height: 1.25
(which _is_ a different thing, though the effects often coincide)
although the official recommendation is "between 1.0 to 1.2".
This is one reason why it is often useful to set line-height even
globally, e.g. to 1.25 or 1.3 or even higher, especially if a
sans-serif font with relatively large x height is used.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top