flex 1 in css code example
Example 1: display flex css
.class {
display: flex;
}
Example 2: flex: syntex
flex: none
flex: <'flex-grow'>
flex: <'flex-basis'>
flex: <'flex-grow'> <'flex-basis'>
flex: <'flex-grow'> <'flex-shrink'>
flex: <'flex-grow'> <'flex-shrink'> <'flex-basis'>
flex: inherit
Example 3: flex parameters
flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
Example 4: what does flex do
The flex CSS property sets how a flex item will grow or shrink to fit the space
available in its flex container. It is a shorthand for flex-grow , flex-shrink ,
and flex-basis .
Example 5: flex property in css
The flex property is a shorthand property for:
flex-grow
flex-shrink
flex-basis