HTMLMenuElement: compact property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{ApiRef("HTML DOM")}}

The **compact** property of the {{domxref("HTMLMenuElement")}} 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 {{cssxref("line-height")}} instead.

It reflects the [compact](/en-US/docs/Web/HTML/Reference/Elements/menu#compact) attribute of the {{HTMLElement("menu")}} element.

Value

A boolean.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}