CSS Flexbox
CSS Flexbox
EDUTECH_TRAINING_SERVICES
CSS Flexbox
CSS Flexbox
CROSS AXIS
CSS Flexbox-Direction
Property Name: flex-direction is the property used to define the direction in a flex
container.
Row Layout: row value aligns the flex items horizontally, in a left-to-right fashion.
Column Layout: column value stacks the flex items vertically, from top to bottom.
Syntex
Selector {
Display : flex ;
flex-direction: row ;
}
CSS Flexbox Justify-Content
Syntex
Selector {
Display : flex ;
justify-content : space-between ;
}
CSS Flexbox-Wrap
Syntex
Selector {
Display : flex ;
flex-wrap : wrap ;
}
CSS Flexbox Align-items
This property is used to align the flex container's items along the cross-axis, which is
perpendicular to the main axis.
Syntex
Selector {
display : flex ;
justify-content : center ;
align-items : center ;
}
CSS Flexbox Align-Self
Syntex
Selector {
align-self : end ;
}
CSS Flexbox Order
The order property specifies the order of the flex items inside the flex container.
The first flex item in the code does not have to appear as the first item in the layout.
Syntex
Selector {
order : 3 ;
}
CSS Flexbox Grow & Shrink
The flex-grow property specifies how much a flex item will grow relative to the
The flex-shrink property specifies how much a flex item will shrink relative to
Syntex
Syntex
Selector {
Selector {
flex-shrink : 2 ;
flex-grow : 5 ;
}
}
CSS Flexbox Grow & Shrink
EduTECH Pune