View Full Version : Line spacing question

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

P{line-height: 25pt}

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?

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

10-09-2002, 09: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.

10-09-2002, 10: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.

10-11-2002, 09: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, 10:13 PM
Try a smaller or non-existant margin:

P{margin: 0px;}

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