Skip to main content

FxFlexAlign

The fxFlexAlign directive should be used on on elements within a sorted fxLayout container and dictates how the element should be aligned, overriding the container cross-axis alignment setting

<div fxLayout="row">
<div fxFlexAlign="start">1. One</div>
<div fxFlexAlign="center">2. Two</div>
<div fxFlexAlign="center">3. Three</div>
<div fxFlexAlign="end">4. Four</div>
</div>

fxFlexAlign Options

Shown below are the supported fxFlexAlign directive values and their resulting CSS stylings on the hosting element container

ValueEquivalent CSS
startalign-self: flex-start
centeralign-self: center
endalign-self: flex-end
baselinealign-self: baseline
stretchalign-self: stretch

Note: All supported values for align-self are supported by this directive