Easy Tutorial
❮ Func Repeating Linear Gradient Sel Focus ❯

CSS3 box-orient Property

Example

Specify that child elements of the div element are arranged horizontally:


Browser Support

Currently, all major browsers do not support the box-orient property.

Firefox supports it through the private property -moz-box-orient.

Safari, Opera, and Chrome support it through the private property -webkit-box-orient.


Property Definition and Usage

The box-orient property specifies whether the child elements of a box should be laid out horizontally or vertically.

Tip: Child elements in a horizontal box are displayed from left to right, and in a vertical box, they are displayed from top to bottom. However, the order can be changed with the box-direction property and the box-ordinal-group property.

Default value: inline-axis
Inherited: no
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.boxOrient="vertical"
--- ---

Syntax

Value Description
horizontal Specifies that child elements are laid out on a horizontal line from left to right
vertical Lays out child elements vertically from top to bottom
inline-axis Child elements are laid out along the inline axis (mapped to horizontal)
block-axis Child elements are laid out along the block axis (mapped to vertical)
inherit The value of the box-orient property should be inherited from the parent element
❮ Func Repeating Linear Gradient Sel Focus ❯