...

View Full Version : Line spacing question



Laura
10-09-2002, 07:20 PM
Hi friends:
Is there a way to reduce the height of lines of text without covering up the lines above?
I tried:

<style>
P{line-height: 25pt}
</style>

but all this does is cover up the bottom half of each line of text. I'm trying to avoid having to use the vertical scroll bar on the opening page of our web site.
In a desktop program like Pagemaker this would be akin to reducing the leading.
Any ideas?

zoobie
10-09-2002, 07:24 PM
I think it works on percentage...so try line-height: .75 :D

Laura
10-09-2002, 08:50 PM
I tried that but it didn't work. It still cuts off the bottom of the line above. I may have to find a work-around. Thanks, though.

MCookie
10-09-2002, 09:22 PM
Hi Laura,
try setting a unit behind your value..
This is default line spacing using percentage: font-size:12px;line-height:100%; To decrease, try 80 or 90%. Should work.

PauletteB
10-11-2002, 08:44 PM
...or if you're using heading style tags, like <h1>, <h2>, change these to <p>, or absolute sizes.
<H > tags will leave a line on top and bottom by default.

Roy Sinclair
10-11-2002, 09:13 PM
Try a smaller or non-existant margin:



<style>
P{margin: 0px;}
</style>

Mr J
10-11-2002, 11:27 PM
Could you not make your text smaller?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum