UL.compact (Property)

A switch that compacts the unordered list content to occupy less space on the screen.

Availability:

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

The collection of LI objects are presented in the normal spaced out style when the compact property belonging to their owner OL object is set to false.

Setting the property to true should result in the list items being squeezed closer together. However, the functionality is rarely supported on web browsers.

It's more likely that you'll apply CSS style attributes to the list to achieve the same effect.