Flexbox Flashcards
Which CSS property defines flex block container?
display: flex;
Which CSS property defines flex inline container?
display: inline-flex;
Which CSS property establishes the main-axis of the flex container?
flex-direction
Which axis defines the direction that flex items are placed in the flex container?
main-axis
How can you set the main-axis of flex container from left to right in ltr?
flex-direction: row;
How can you set the main-axis of flex container from top to bottom?
flex-direction: column;
How can you set the main-axis of flex container from bottom to top in reverse order?
flex-direction: column-reverse;
How can you set the main-axis of flex container from right to left in rtl?
flex-direction: row;
How can you set the main-axis of flex container from right to left in ltr?
flex-direction: row-reverse;
How can you set the main-axis of flex container from left to right in rtl?
flex-direction: row-reverse;
What is the default wrapping behaviour of flex container?
nowrap
Which CSS property changes the wrapping behaviour of flex container?
flex-wrap
What are the possible values of flex-wrap property?
nowrap | wrap | wrap-reverse
How can you tell flex container that you want flex items will wrap onto multiple lines, from top to bottom?
flex-wrap: wrap;
How can you tell flex container that you want flex items will wrap onto multiple lines, from bottom to top?
flex-wrap: wrap-reverse;
How can you tell flex container that flex items should not wrap?
flex-wrap: nowrap;
Shorthand for the ‘flex-direction’ and ‘flex-wrap’ properties.
flex-flow
Default values for ‘flex-flow’ property.
flex-flow: row nowrap;