CSS:-moz-box-pack
From MDC
« CSS « CSS Reference « CSS Reference:Mozilla Extensions
[edit] Summary
In Mozilla applications, -moz-box-pack specifies how a box
packs its contents in the direction of its layout. The effect of this is only
visible if there is extra space in the box.
The direction of layout depends on the element's orientation: horizontal or vertical.
- Initial value:
start - Applies to: elements with a CSS
displayvalue of-moz-boxor-moz-inline-box - Inherited: no
- Percentages: n/a
- Media:
visual - Computed value: as specified
[edit] Syntax
-moz-box-pack: start | center | end | justify
[edit] Values
- start
- The box packs contents at the start, leaving any extra space at the end.
- center
- The box packs contents in the center, dividing any extra space equally between the start and the end.
- end
- The box packs contents at the end, leaving any extra space at the start.
- justify
- ?
[edit] Examples
hbox.example {
-moz-box-pack: end; /* move contents to the right */
}
[edit] Notes
The edge of the box designated the start for packing purposes depends on the box's orientation and direction:
| Normal | Reverse | |
| Horizontal | left | right |
| Vertical | top | bottom |
The edge opposite to the start is designated the end.
If the packing is set using the element's pack attribute, then the style is ignored.
[edit] See Also
CSS:-moz-box-orient, CSS:-moz-box-direction, CSS:-moz-box-align