dlNN 6 IE 4 DOM 1  

  

The dl object reflects the dl element. This element is the wrapper for a definition list grouping.

 
HTML Equivalent
 
<dl>
 
Object Model Reference
 
[window.]document.getElementById("elementID")
 
Object-Specific Properties

compact

 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

None.

compactNN 6 IE 4 DOM 1  

Read/Write  

When set to true, the compact property instructs the browser to render a related dt and dd pair on the same line if space allows. This compact styling is intended for dt elements consisting of only a few characters.

 
Example
 
document.getElementById("maindl").compact = true;
 
Value

Boolean value: true | false.

 
Default

false