XUL Programmer's Reference Manual
<bulletinboard>
The <bulletinboard> gives you full positioning control over its child elements. The following example demonstrates the use of the height and width attributes on the bulletinboard itself, and the
style, top, and left attributes all being used to position the child elements within the space of the bulletinboard.
Given a bulletinboard arranged like the one above, you can use the XUL DOM to change the location of the child elements by changing the value of their top or left properties, as in the following snippet of code:
| ||||||||||||||
width | ||||||||||||||
Description
width specifies the width in pixels of the bulletinboard element.Syntax <bulletinboard width="number of pixels wide" />Example <bulletinboard height="300" width="200px" />Notes The "px" at the end of the number value is optional.
|
||||||||||||||
height | ||||||||||||||
Description
width specifies the height in pixels of the bulletinboard element.Syntax <bulletinboard height="number of pixels wide" />Example <bulletinboard height="200px" width="300" />Notes The "px" at the end of the number value is optional.
|
||||||||||||||
style | ||||||||||||||
Description
width specifies the width in pixels of the bulletinboard element.Syntax <bulletinboard width="number of pixels wide" />Example <bulletinboard width="200px" />Notes Though using the style attribute can be a somewhat indirect way of dealing with XUL elements, you can use style to set the top and left attributes of the children of a bulletinboard, as in the example above. Note that if you use style, you must then use "px" to specify pixels.
|