Skip to main content

Grid System

Twigkit uses a response 24 column grid system. The column widths are specified using a ratio of 24ths. For example at the attribute sm="1-3" to the layout:block tag to set the width to 1/3 of the container width on small screens. By default layout:blocks will be 100% width. Example

Grid Breakpoints

Widths can be specified for each of the xs, sm, md, lg, and xl breakpoints individually. lg Example md Example sm Example

Grid Offsets

An offset attribute can be used to push the layout:block to the right, leaving an empty space Example

Nested

Standard Button Example

Image

Standard Button Example

Justify Content

Example

Hide

You can hide the layout by using hide or show at your desire size point styling="hide-xs" xl Example md Example xs Example

Alignments

Default (Stretch) Example Align All Items Top (.tk-rgrid-align-top) Example Align All Items Bottom (.tk-rgrid-align-bottom) Example Align All Items Middle (.tk-rgrid-align-middle) Example Stretch All Items (.tk-rgrid-align-stretch) Example Item Alignment Overrides Example

Justify Items

Default, Align items to the start (.tk-rgrid-justify-start) Example Align items to the end of the container (.tk-rgrid-justify-end) Example Center items (.tk-rgrid-justify-center) Example Even spacing around items (.tk-rgrid-justify-around) Example Even spacing between items (.tk-rgrid-justify-between) Example Combination Example

Container Direction

Row - Default (.tk-rgrid-direction-row) Example Row Reverse (.tk-rgrid-direction-row-reverse) Example Column (.tk-rgrid-direction-col) Example Column Reverse (.tk-rgrid-direction-col-reverse) Example

Offsets

Example