Flexbox Flashcards
(46 cards)
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;
Which property defines the alignment along the main axis of flex container?
justify-content
Default value for justify-content property of flex container.
justify-content: flex-start;
Pack the flex items toward the start of the flex-direction
justify-content: flex-start;
Pack the flex items toward the end of the flex-direction
justify-content: flex-end;
Center flex items along the main-axis
justify-content: center;
Distribute flex-items evenly along the main-axis; so that first item is on the start line, last item on the end line
justify-content: space-between;