-moz-box-direction property | -webkit-box-direction property
-moz-box-direction: | ||||||
-webkit-box-direction: |
Specifies the direction in which the children of a box are placed.
Only works for box objects. 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).
JavaScript page for this property: MozBoxDirection | webkitBoxDirection. You can find other example(s) there. |
Possible values:
One of the following values:
Takes the value of this property from the computed style of the parent element. | |||||||
Children are placed either from left to right or top to bottom in the order the elements appear in the XUL source or document tree. | |||||||
Children are placed either from right to left or bottom to top in the order the elements appear in the XUL source or document tree. |
Default: normal.
Example HTML code 1:
This example illustrates the use of the -moz-box-direction and the -webkit-box-direction properties:
|
||||
<head> <style> .normal { width: 250px; border: 2px solid red; display: -moz-inline-box; display: -webkit-inline-box; -moz-box-direction: normal; -webkit-box-direction: normal; } .reverse { width: 250px; border: 2px solid red; display: -moz-inline-box; display: -webkit-inline-box; -moz-box-direction: reverse; -webkit-box-direction: reverse; } </style> </head> <body> <div class="normal"> <i>direction normal</i> </div> <br /><br /> <div class="reverse"> <i>direction reverse</i> </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:
User Contributed Comments