Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1763 How can I reduce the spacing between paragraphs?

You are here: irt.org | FAQ | CSS | Q1763 [ previous next ]

Set line-height to less than 1. But be careful - while paragraphs are drawn closer together, the lines within a paragraph are pushed very close together. With anything less than .9, letters on two lines within a para will touch. It is therefore only useful if you know your paragraphs will be less than one line long. For example if each para is a brief data output field and you want to maximise the number of fields you can display on the screen at any one time.

<style>
P {line-height: .5 }
</style>

Submitted by Peter Fagan

©2018 Martin Webb