box-ordinal-group

Warning: This is a property of the original CSS Flexible Box Layout Module standard which is being replaced by a new standard.

See Flexbox for more information.

The CSS box-ordinal-group property assigns the flexbox's child elements to an ordinal group. See Flexbox for more about the properties of flexbox elements.

Ordinal groups may be used in conjunction with the box-direction property to control the order in which the direct children of a box appear. When the computed box-direction is normal, a box will display its elements starting from the lowest numbered ordinal group and ensure that those elements appear to the left (for horizontal boxes) or at the top (for vertical boxes) of the container. Elements with the same ordinal group are flowed in the order they appear in the source document tree. In the reverse direction, the ordinal groups are examined in the same order, except the elements appear reversed.

Initial value1
Applies tochildren of box elements
Inheritedno
Mediavisual
Computed valueas specified
Animatableno
Canonical orderthe unique non-ambiguous order defined by the formal grammar

Syntax

/* <integer> values */
box-ordinal-goup: 1;
box-ordinal-goup: 5;

/* Global values */
box-ordinal-goup: inherit;
box-ordinal-goup: initial;
box-ordinal-goup: unset;

Values

<integer>
Any positive integer.

Formal syntax

<integer>

Specifications

Flexible Box Layout Module (W3C Working Draft)

Note: The current state of this specification does not reflect Mozilla's or WebKit's implementation.

Old Flexible Box Layout Module

Note: WebKit and Mozilla's implementations reflect this version of the specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes)-webkit (Yes)-moz No support (Yes)-webkit 1.1-khtml
3.0-webkit
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? No support ? 1.0-webkit

See also

box-flex, box-flex-group, box-pack

Document Tags and Contributors

 Contributors to this page: Sebastianz, jwhitlock, Jeremie, velvel53, Sheppy, scottrowe
 Last updated by: Sebastianz,