A Flexbox is a container that aligns direct items inside it to make the items responsive to changes on the page resolution, making the website content better for the user to visualize.
.flex-container {
display: flex;
}
.flex-container [tag] {
/* Every innerTag alignment */
}
How are the container items disposed within it, based on the X / Y axes.
.flex-container {
flex-direction: column, column-reverse, row (default), row-reverse
}
Force the content to stay within the container? Allows for multiple lines of content.
.flex-container {
flex-wrap: nowrap (default), wrap, wrap-reverse
}
Shortcut to flex-direction & flex-wrap.
.flex-container {
flex-flow: [direction] [wrap]
}
[props]: {
flex-start: Default, start of flex container,
flex-end: End of flex container,
center: Center of flex container,
space-between: Space between items, no space in the borders,
space-around: Space between items, half the space in the borders,
space-evenly: Space between items and borders,
baseline: Items are centered in the main axis, works for cross axis props
}
Properties applied to every item inside a Flexbox container.
Modify spacing according to the direction (main axis).
.flex-container {
justify-content: [props]
}