Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1763 How can I reduce the spacing between paragraphs?

irt.org | Knowledge Base | CSS | Q1763 [ previous next ]

Q1763 How can I reduce the spacing between paragraphs?

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.