Search w3schools.com:

SHARE THIS PAGE

CSS Reference

CSS Reference CSS Selectors CSS Reference Aural CSS Web Safe Fonts CSS Units CSS Colors CSS Color Values CSS Color Names CSS Color HEX CSS3 Browser Support

CSS Properties

CSS3 box-direction Property


Example

Display the the child elements of the div box in the reverse direction:

div
{
width:350px;
height:100px;
border:1px solid black;

/* Internet Explorer 10 */
display:-ms-flexbox;
-ms-flex-direction:row-reverse;

/* Firefox */
display:-moz-box;
-moz-box-direction:reverse;

/* Safari, Opera, and Chrome */
display:-webkit-box;
-webkit-box-direction:reverse;

/* W3C */
display:box;
box-direction:reverse;
}

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The box-direction property is not supported in any of the major browsers.

Internet Explorer 10 supports an alternative, the -ms-flex-direction property.

Firefox supports an alternative, the -moz-box-direction property.

Safari, Opera, and Chrome support an alternative, the -webkit-box-direction property.

Note: Flexible boxes are not supported in Internet Explorer 9 and earlier versions.


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;

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



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]