-moz-box-ordinal-group property | -webkit-box-ordinal-group property
-moz-box-ordinal-group: | ||||||
-webkit-box-ordinal-group: |
Sets the display order in which objects appear within a box.
Elements with a higher value are displayed after those with a lower value.
The display order of the elements with the same group values depend on their source order.
Only works for elements in a box object.
An element is a box object if the display property of the element has the value of
-moz-box (-webkit-box) or -moz-inline-box (-webkit-inline-box).
You can get the same functionality with reordering the elements in your source code within the box.
JavaScript page for this property: MozBoxOrdinalGroup | webkitBoxOrdinalGroup. You can find other example(s) there. |
Possible values:
One of the following values:
Integer, that indicates the ordinal group the element belongs to. | |||||||
Takes the value of this property from the computed style of the parent element. |
Default: 1.
Example HTML code 1:
This example illustrates the use of the -moz-box-ordinal-group and the -webkit-box-ordinal-group properties:
|
||||
<head> <style> .box { display: -moz-inline-box; display: -webkit-inline-box; border: 5px solid red; } .ordinal1 { margin: 5px; -moz-box-ordinal-group: 1; -webkit-box-ordinal-group: 1; } .ordinal2 { margin: 5px; -moz-box-ordinal-group: 2; -webkit-box-ordinal-group: 2; } </style> </head> <body> <div class="box"> <div class="ordinal2">first in source with ordinal 2</div> <div class="ordinal1">second in source with ordinal 1</div> </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, bdo, big, blink, blockQuote, body, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, ins, isIndex, kbd, label, legend, li, marquee, menu, ol, p, pre, s, samp, small, span, strike, strong, sub, sup, table, td, textArea, th, tr, tt, u, ul, var, q, xmp
Related pages:
External links:
-moz-box-ordinal-group (Mozilla Developer Center)
-webkit-box-ordinal-group (Safari Reference Library)
-webkit-box-ordinal-group (Safari Reference Library)
User Contributed Comments