box-direction property

Image Tutorials

Definition and Usage

The box-direction property specifies the direction in which child elements of a box element are laid out.

Default value: normal
Inherited: no
Version: CSS3
JavaScript syntax: object.style.boxDirection=”reverse”

Syntax

 box-direction: normal|reverse|inherit;

Values

Value Description
normal Display the child elements in the default direction
reverse Display the child elements in the reverse direction
inherit The value of the box-direction property should be inherited from the parent element

Examples

01 div {
02     width:350px;
03     height:100px;
04     border:1px solid black;
05     /* Internet Explorer 10 */
06     display:-ms-flexbox;
07     -ms-flex-direction:row-reverse;
08     /* Firefox */
09     display:-moz-box;
10     -moz-box-direction:reverse;
11     /* Safari, Opera, and Chrome */
12     display:-webkit-box;
13     -webkit-box-direction:reverse;
14     /* W3C */
15     display:box;
16     box-direction:reverse;
17 }

Rate article