Simple Flexbox Grid
Simple Flexbox Grid
Simple Flexbox Grid was created to help layout small chunks of content more efficiently because vertical alignment, equal heights, and auto fitting content in CSS is incredibly time consuming. This grid was designed to cover some specific cases not covered by bootstrap 3's grid. If you wish to use bootstrap 3's grid inside Simple Flexbox Grid, it only reliably works with col-xs-(# of columns) in its current state.
Use
flex-containerto define the container for your grid, any elements that are direct children are now part of your grid. By default, each item will only be as wide as its content.
Stacking Flex Containers
Make
flex-containerstack all its direct descendants at specific screen widths with classes:
flex-container-stacked-xxs479px and below.
flex-container-stacked-xs767px and below.
flex-container-stacked-sm991px and below.
flex-container-stacked-md1199px and below.
flex-container-stacked-lg1200px and above.
flex-container-stacked-xs-onlybetween 480px and 767px.
flex-container-stacked-sm-onlybetween 768px and 991px.
flex-container-stacked-md-onlybetween 992px and 1199px.
Force Flex Items to Break into New Lines
Force a direct descendant of
flex-containerto break to a new line with classes:
flex-item-break-xxs479px and below.
flex-item-break-xs767px and below.
flex-item-break-sm991px and below.
flex-item-break-md1199px and below.
flex-item-break-lg1200px and above.
flex-item-break-xs-onlybetween 480px and 767px.
flex-item-break-sm-onlybetween 768px and 991px.
flex-item-break-md-onlybetween 992px and 1199px.