ExampleSpecify the display order of the child element of a box:
Try it yourself » |
The box-ordinal-group property is not supported in any of the major browsers.
Firefox supports an alternative, the -moz-box-ordinal-group property.
Safari and Chrome support an alternative, the -webkit-box-ordinal-group property.
The box-ordinal-group property specifies the display order of the child elements of a box.
Elements with a lower value are displayed before those with a higher value.
Note: The display order of the elements with the same group value depend on their source order.
Default value: | 1 |
---|---|
Inherited: | no |
Version: | CSS3 |
JavaScript syntax: | object.style.boxOrdinalGroup=2 |
box-ordinal-group: integer; |
Value | Description |
---|---|
integer | An integer that indicates the display order of the child elements |