what is the function of the display:flex property in making and deploying a website ?was unable to understand it clearly…!


The element behaves like a block element and lays out its content according to the flexbox model.

you will need to understand flexbox model:

flex is an improvement compared to the block and inline model