MDN self-hosted library · e01.org

HTMLDListElement: compact property

HTML DOM

no runnable cells web-api-instance-property upstream source

HTML DOM

The compact property of the HTMLDListElement interface indicates that spacing between list items should be reduced. The exact handling of the compact attribute is browser-specific. Instead of using this property, consider using CSS line-height instead.

It reflects the compact attribute of the dl element.

Value

A boolean.

Specifications

Browser compatibility