Mozilla XUL Element and Script Reference

Contents  Quick Reference

Image

An element that displays an image, much like the HTML img element. The src attribute can be used to specify the URL of the image.

Attributes:

Attributes inherited from XUL Element


flex

Indicates the flexibility of the image. Flexible elements grow and shrink to fit their given space. The actual value is not relevant unless there are other flexible elements with-in the same container. Elements with larger flex values will grow more than elements with lower flex values, at the ratio determined by the two elements.

height

The height of the image in pixels. It is recommended to use the CSS height property instead.

src

The URL of the image to appear on the image. If this is attribute is left out, no image appears.

width

The width of the image in pixels. It is recommended to use the CSS width property instead.