The correct answer is D. all of the mentioned.
The flex
property is a shorthand property for flex-direction
and flex-wrap
. It can be used to set both properties at the same time.
The flex-direction
property specifies the direction in which flex items are laid out. The possible values are row
, column
, and column-reverse
.
The flex-wrap
property specifies whether flex items can wrap to a new line. The possible values are nowrap
, wrap
, and wrap-reverse
.
Here is an example of how to use the flex
property to set both the flex-direction
and flex-wrap
properties:
css
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
This will create a flex container with flex items that are laid out in a row, and that can wrap to a new line if necessary.