W3Schools.com

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

CSS Reference Complete CSS Reference

Example

Display the children of a div box from right to left:

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

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

/* Safari 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.

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

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


Definition and Usage

The box-direction property specifies in which direction the children of a box are displayed.

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 children in horizontally boxes from left to right, and children in vertically boxes from top to bottom Play it »
reverse Display children in horizontally boxes from right to left, and children in vertically boxes from bottom to top Play it »
inherit The value of the box-direction property should be inherited from the parent element


CSS Reference Complete CSS Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE