Javascript Reference
Categories: DL

javascript DL compact

@March 15, 2008, 1:22 a.m.
compactFirefox/Netscape/NN 6 IE 4 Chrome/Safari/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


Powered by Linode.