- one dimensional layout
display
- sets the flex container if the value flex or inline-flex is passed, the flex containers has default values e.g. that the flex-direction row is used
flex-direction
- indicates the direction of the flex layout, possible values are row, row-reverse, column, column-reverse
flex-wrap
- indicates whether elements are wrapped at the end of the layout
.box {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
}
flex-flow
- combination of direction and wrap
.box {
display: flex;
flex-flow: row wrap;
}
flex-grow
- if set to a positive integer, flex items can grow along the main axis from their flex-basis
flex-shrink
- if set to a positive integer, flex items can shrink along the main axis from their flex basis
flex-basis
- defines the size of an item in terms of the space it leaves as available space
The flex layout can be used to align the content of an element to the center:
<div class="container">
<div class="center">Center</div>
</div>
.container {
display: flex;
justify-content: center;
}
Bootstrap is a collection of stylesheets which can easily applied to a web development project.
https://github.com/twbs/bootstrap
https://getbootstrap.com/docs/4.0/components/buttons/
https://getbootstrap.com/docs/4.0/components/dropdowns/
https://getbootstrap.com/docs/4.0/components/navbar/