Lay out the children of a div element horizontally:
![]()
The box-orient property is not supported in any of the major browsers.
Firefox supports an alternative, the -moz-box-orient property.
Safari, Opera, and Chrome support an alternative, the -webkit-box-orient property.
The box-orient property specifies whether the children of a box should be laid out horizontally or vertically.
Tip: Children within a horizontal box are displayed from left to right, and children within a vertical box are displayed top to bottom. However, the box-direction and box-ordinal-group properties can change this ordering.
| Default value: | inline-axis |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.boxOrient="vertical" |
| Value | Description | Play it |
|---|---|---|
| horizontal | Lay out children from left to right in a horizontal line | Play it » |
| vertical | Lay out children from top to bottom vertically | Play it » |
| inline-axis | Lay out children along the inline axis (map to horizontal) | Play it » |
| block-axis | Lay out children along the block axis (map to vertical) | Play it » |
| inherit | The value of the box-orient property should be inherited from the parent element |
Your message has been sent to W3Schools.