Using this macro, you can easily convert text alignment values into flexbox justify content values, streamlining your HubSpot CMS development and enhancing editor usability.
The macro defines a clear mapping between 'LEFT', 'CENTER', and 'RIGHT' text alignment options and corresponding flexbox values: 'flex-start', 'center', and 'flex-end', respectively.
This functionality improves efficiency in web development by translating intuitive text alignment into the technical specifications required for layout control and design.
To implement the macro, simply call it with the desired text alignment value and it will output the corresponding CSS rule for justify-content.
Collection
[
|
...
]