Properties for the Parent
Layout children
Add children to the parent container and change its properties using the switches below to see the flexbox layout in action.
Next Child
Generated Code
.parent {
display: flex;
flex-direction: [flexDirection];
flex-wrap: [flexWrap];
justify-content: [justifyContent];
align-items: [alignItems];
align-content: [alignContent];
}
Properties for the Children
Flex with Order
Move the slider to explore how the “order” property can change the position of “target” among the elements (in different types of layout).
Generated Code
.target {
order: [targetOrder];
}
Flex with Align-Self
Click on “target” to explore how “align-self” can change the alignment for a single element only.
Generated Code
.target {
align-self: [get(states, state)];
}