DL.compact (Property)

An attribute that controls the display of <DD> and <DT> items and the amount of space they require on the screen.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:-myDL.compact

The DT and DD objects are normally displayed on two consecutive lines. When the DL that owns a collection of DT/DD object pairs has the compact property set to true, the DT/DD pair are displayed on the same line to save space.