WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
Spacer
An element that takes up space but does not display anything. It is usually used to place spacing within a container. If you don't specify that the spacer has a size or is flexible, the spacer does not occupy any space. If you want a small gap, consider using a separator instead.
Example:
<box>
<button label="Left"/>
<spacer flex="1"/>
<button label="Right"/>
</box>
Attributes:
Inherited from XUL Element:
Properties and Methods:
Inherited from XUL Element:
Inherited from Element:
