Flex

Flexible layout utilities that help arrange content using gap spacing and alignment with flexbox. These utilities complement Bootstrap's flex system and extend it with more granular spacing controls.

All classes use the al- prefix and follow utility-first conventions.

Overview

Utility GroupClass FormatDescription
Flex Alignment.al-flex-centerCenters content both vertically and horizontally
Gap.al-gap-{n}Sets spacing between flex/grid children using rem units

Sass Reference

assets/scss/_flex.scss Copy
Show More

Class Usage Reference

ClassDescription
.al-flex-centerAligns items in center both axes
.al-gap-20Sets gap to 20px

Examples

Flex Centering

Centered Box
Copy

Gap

gap: 20px
gap: 20px
gap: 20px
Copy

Developer Notes

  • Gap spacing is rem-based to match your global sizing system.

  • .al-gap-{n} applies to both flex and grid layouts.

  • .al-flex-center is ideal for quick centering of items using flexbox.

  • Designed to extend Bootstrap's .d-flex, .align-items-* and .justify-content-* classes.