<link rel="stylesheet" href="https://cdn.rawgit.com/nilestanner/flex-css/master/generated/min/flex-css-placement.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/nilestanner/flex-css/master/generated/min/flex-css-sizing.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/nilestanner/flex-css/master/generated/min/flex-css-all.css">
Attribute: layout
Options:
<div layout="row">
...
</div>
<div layout="col">
.
.
.
</div>
Align can take one or two options. When using two options the first option must be the vertical option.
Attribute: align
Vertical options:
Horizontal options:
<div align="top left">
<!-- ALIGNED TO TOP LEFT -->
</div>
<div align="center">
<!-- ALIGNED TO THE CENTER VERTICALLY AND HORIZONTALLY -->
</div>
<div align="right">
<!-- ALIGNED RIGHT -->
</div>
<!-- ETC. -->
Using the spacing attribute will override the horizontal alignment
Attribute: space
Options:
<div space="between">
|. . .|
</div>
<div space="around">
| . . . |
</div>
Attribute: size
Options:
<div layout="row">
<div size="15"></div>
<div size="60"></div>
<div size="20"></div>
</div>
Attribute: order
Options:
<div layout="row">
<div order="5"></div><!-- ORDERED SECOND -->
<div></div><!-- ORDERED LAST -->
<div order="-2"></div><!-- ORDERED FIRST -->
</div>
Attributes:
Options:
<div layout-lg="row" layout-sm="col">
<!-- ON LARGE SCREENS -->
...
</div>
<div layout-lg="row" layout-sm="col">
<!-- ON SMALL SCREENS -->
.
.
.
</div>
Attributes:
Vertical options:
Horizontal options:
<div align-lg="top left" align-sm="bottom right">
<!-- ON LARGE SCREENS ALIGNED TOP LEFT -->
</div>
<div align-lg="top left" align-sm="bottom right">
<!-- ON SMALL SCREENS ALIGNED BOTTOM RIGHT-->
</div>