CSS Box-flex Properties

Source: Internet
Author: User

Box-flex Properties (harmonious version)
#father {Display:box;}
#first_boy {box-flex:2;} #second_boy {box-flex:1;} #three_boy {box-flex:1;}
CSS Box-flex Properties (non-harmonious version)
#first_boy {box-flex:2;} #second_boy {box-flex:1;} #three_boy {width:50px;}
Box-orient, Box-direction, box-align, Box-pack usage

Box-orient
The box-orient is used to determine the direction of the child elements. Whether it is a row or a vertical walk. The optional values are:

Horizontal | Vertical | Inline-axis | Block-axis | Inherit

Box-direction

The box-direction is used to determine the order in which the child elements are arranged, and the optional values are:

normal | Reverse | Inherit

Box-align

both Box-align and box-pack determine how the remaining space inside the box is used. In the behavioral effect is to show "alignment",
Start | End | Center | Baseline | Stretch
Box-pack

Box-pack determines the use of the parent tag's horizontal left-over space, with optional values such as:

Start | End | Center | Justify

CSS Box-flex Properties

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.