CSS Flexbox
Flexbox is a layout framework in CSS
CSS Flexbox
Flex items are distributed along the main axis of the flex container, and can be positioned horizontally (row direction) or vertically (column direction).
CSS Flexbox
displayflex-directionjustify-contentalign-itemsflex-wrapgapCSS Flexbox
display: used to define the container element as a flex container
CSS Flexbox
flex-direction: used to define the direction in which the flex items should be laid out
CSS Flexbox
justify-content: used to define how the flex items should be aligned along the main axis of the flex container
CSS Flexbox
align-items: used to define how flex items should be aligned along the cross-axis of the flex container
CSS Flexbox
flex-wrap: used to define whether flex items are forced in a single line or can be wrapped into multiple lines
CSS Flexbox
gap: used to define the space between rows and columns of the flex container
Concept Practice: Flexbox
Let's try to create a component using flexbox!
Concept Practice: Flexbox
Let's try to create a layout using flexbox!
CSS Flexbox
CSS Grid