CSS3 box-ordinal-group property
Example
Specify the display order of the child elements of a box:
.box
{
display:-ms-flexbox; /* Internet Explorer 10 */
display:-moz-box; /* Firefox */
display:-webkit-box; /* Safari and Chrome */
display:box;
border:1px solid black;
}
.ord1
{
margin:5px;
-ms-flex-order:1; /* Internet Explorer 10 */
-moz-box-ordinal-group:1; /* Firefox */
-webkit-box-ordinal-group:1; /* Safari and Chrome */
box-ordinal-group:1;
}
.ord2
{
margin:5px;
-ms-flex-order:2; /* Internet Explorer 10 */
-moz-box-ordinal-group:2; /* Firefox */
-webkit-box-ordinal-group:2; /* Safari and Chrome */
box-ordinal-group:2;
}
Try it »
Browser support





Currently no major browser supports the box-ordinal-group property.
Internet Explorer 10 supports it through the private property ms-flex-order.
Firefox supports it through the private property -moz-box-ordinal-group.
Safari and Chrome support it through the private property -webkit-box-ordinal-group.
**Note:** Internet Explorer 9 and earlier versions do not support flexbox.
Property definition and usage
The box-ordinal-group property specifies the display order of the child elements of a box.
Elements with lower values are displayed before those with higher values.
Note: The display order of elements with the same group value depends on their source order.
| Default value: | 1 |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.boxOrdinalGroup=2 |
Syntax
box-ordinal-group:
integer
;
| Value | Description |
|---|---|
| integer | An integer indicating the display order of the child element |