CSS3 Box-orient Properties

Source: Internet
Author: User

CSS3 Box-orient Properties

CSS Reference Manuals

Instance

Arranges the child elements of a DIV element horizontally:

div{width:350px;height:100px;border:1px solid black;  /* Firefox */display:-moz-box;-moz-box-orient:horizontal; /* Safari, Opera, and Chrome */display:-webkit-box;-webkit-box-orient:horizontal; / * */display:box; box-orient:horizontal; }  

Try it yourself.

Browser support

There is currently no browser support for the Box-orient property.

Firefox supports an alternative-moz-box-orient property.

Safari, Opera, and Chrome support alternative-webkit-box-orient properties.

Definition and usage

The Box-orient property specifies that the child elements of the box should be arranged horizontally or vertically.

Tip: child elements in the horizontal box are displayed from left to right, while the child elements of the vertical box are displayed from top to bottom. However, box-direction and Box-ordinal-group can change that order.

Default value: Inline-axis
Inheritance: No
Version: CSS3
JavaScript Syntax: object. style.boxorient= "Vertical"
Grammar
Box-orient:horizontal|vertical|inline-axis|block-axis|inherit;
value Description Test
Horizontal Arranges child elements from left to right in horizontal rows. Test
Vertical Arranges child elements vertically from top to bottom. Test
Inline-axis Arranges child elements along the inline axis (mapped to horizontal). Test
Block-axis Arranges child elements along the block axis (mapped to vertical). Test
Inherit The value of the Box-orient property should be inherited from the parent element.
Http://www.w3school.com.cn/cssref/pr_box-orient.asp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.