2.3. Box Layout Tags

Structural tags are XUL tags that affect layout but that aren't necessarily visible themselves. In the simplest case, they have no content of their own.

2.3.1. Boxes

As stated earlier, all XUL tags, including unknown tags, have the style display -moz-box applied to them. Those tags with special purposes are then overridden, leaving the rest to act like <box>. That means <xyzzy> and <happy-sad> are XUL box tags, although not particularly obvious ones. There are three tags put forward as the standard way to express boxes:

  1. <box>. This tag is a horizontal box with defaults as described under “Common Box Layout Attributes.”

  2. <hbox>. A horizontal box. This tag is exactly the same as <box>. The name merely helps to remind the reader ...

Get Rapid Application Development with Mozilla™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.