CSS Flexbox and Grid
Test your knowledge on CSS Flexbox and Grid with this comprehensive quiz. Assess your understanding of the fundamental concepts, properties, and techniques used in these powerful layout modules.
Questions
What property is used to define the direction of flex items in a flex container?
- flex-direction
- flex-wrap
- justify-content
- align-items
What property is used to control the wrapping behavior of flex items when they reach the end of a flex container?
- flex-direction
- flex-wrap
- justify-content
- align-items
What property is used to distribute space between flex items along the main axis of the flex container?
- flex-direction
- flex-wrap
- justify-content
- align-items
What property is used to distribute space between flex items along the cross axis of the flex container?
- flex-direction
- flex-wrap
- justify-content
- align-items
What property is used to specify the initial size of flex items in a flex container?
- flex-grow
- flex-shrink
- flex-basis
- flex
What property is used to control how flex items grow when there is extra space in the flex container?
- flex-grow
- flex-shrink
- flex-basis
- flex
What property is used to control how flex items shrink when there is not enough space in the flex container?
- flex-grow
- flex-shrink
- flex-basis
- flex
What property is used to specify a shorthand for the flex-grow, flex-shrink, and flex-basis properties?
- flex-grow
- flex-shrink
- flex-basis
- flex
What is the default value of the flex-direction property?
- row
- column
- row-reverse
- column-reverse
What is the default value of the flex-wrap property?
- nowrap
- wrap
- wrap-reverse
What is the default value of the justify-content property?
- flex-start
- flex-end
- center
- space-between
- space-around
What is the default value of the align-items property?
- flex-start
- flex-end
- center
- baseline
- stretch
What is the default value of the flex-grow property?
- 0
- 1
- 2
- 3
What is the default value of the flex-shrink property?
- 0
- 1
- 2
- 3
What is the default value of the flex-basis property?
- 0
- auto
- 100%
- 200%