CSS Order property of flexible elastic box model

Source: Internet
Author: User

Instance

Set the order of the Elastic box object elements:

  1. P # MYREDP {order:2;}

  2. P # Mybluep {order:4;}

  3. P # MYGREENP {order:3;}

  4. p # MYPINKP { order : 1 ;}

<! DOCTYPE html>

Effect Preview

Browser support

The number in the table represents the version number of the first browser that supports the property.

The number immediately following the-webkit-,-ms-or-moz-is the first version that supports the prefix attribute.

Properties
Order 29.0
21.0-webkit-
11.0 28.0
18.0-moz-
9.0
6.1-webkit-
17.0

Definition and usage

The Order property sets or retrieves the order in which the child elements of the elastic box model object appear:

Note: If the element is not an element of the elastic box object, the Order property does not work.

0
inherit: no
can be animated: Yes, see individual properties . See CSS3 Animated Properties, CSS3 animated instances . Effect Preview
version: CSS3
JavaScript Syntax: object. style.order= "2" effect preview

CSS syntax


Order: number |initial|inherit;

Property value

value Description
number
initial
Inherit Inherit the property from the parent element. See Inherit.
More flexible elastic box model CSS Order properties related articles please follow topic.alibabacloud.com!
  • 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.