DEV Community

shubham123
shubham123

Posted on

Flex Box

Flex box plays very important role in CSS. Flex box helps to format the data in the form of rows and columns. We can use flex box in CSS by giving display flex. We have to specify display flex to parent container of the data on which we want to perform some activities. After that we are able to use the properties of flex box. There are so many properties of flex box such as justify content, align content, align-items, flex direction, flex-wrap these are the properties which helps to format data in perticular form. These are the properties which are apply on parent container. Justify content and align items these are the properties are very important main properties of flex box. Justify content help to align content along main axis and we can use so many properties of justify content like center, space-around, space-between, space-evenly, end, start. and align items help to align content along vertical axis we can use same properties of justify content to align items.
And some properties and are apply on elements such as order, align self these properties help to align that perticular element.
We can use flex box easily by doing more practice. I did small projects that will help to improve the use flex box in good manner.

Top comments (0)