Javatpoint Logo
Javatpoint Logo

Polymer Iron Flex Layout

The <iron-flex-layout> element is used to provide CSS flexible box layout. It is also known as flexbox.

You can use flexbox in two different ways:

  • Layout classes: The layout class is a stylesheet which provides certain rules of class-based flexbox where the layout properties are directly defined in the markup.
  • Custom CSS mixins: It is a stylesheet which contains custom CSS mixins, which can be applied inside a CSS rule with the help of @apply function.

Example

Open command prompt and go to your project folder to implement iron-flex-layout element by using the following command:

iron flex layout

Now, you can import the iron-flex-layout file in your index.html using the following command:

Output:

iron flex layout 2
Next TopicIron Form





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA