Align
Align Content Classes
.content-end
Sets the justify-content property to flex-end and align-content property to flex-end, aligning the content at the end of the container along both the main and cross axes.
CSS equivalent:
Example usage:
.a-content-initial
Sets the align-content property to initial, restoring the default align content behavior.
CSS equivalent: align-content: initial;
Example usage:
.a-content-inherit
Sets the align-content property to inherit, inheriting the align content behavior from its parent.
CSS equivalent: align-content: inherit;
Example usage:
.a-content-center
Sets the align-content property to center, centering the content along the cross axis.
CSS equivalent: align-content: center;
Example usage:
.a-content-flex-start
Sets the align-content property to flex-start, aligning the content at the start of the container along the cross axis.
CSS equivalent: align-content: flex-start;
Example usage:
.a-content-flex-end
Sets the align-content property to flex-end, aligning the content at the end of the container along the cross axis.
CSS equivalent: align-content: flex-end;
Example usage:
.a-content-stretch
Sets the align-content property to stretch, stretching the content to fill the container along the cross axis.
CSS equivalent: align-content: stretch;
Example usage:
.a-content-between
Sets the align-content property to space-between, distributing the content evenly along the cross axis with space between them.
CSS equivalent: align-content: space-between;
Example usage:
.a-content-around
Sets the align-content property to space-around, distributing the content evenly along the cross axis with equal space around them.
CSS equivalent: align-content: space-around;
Example usage:
.a-content-evenly
Sets the align-content property to space-evenly, distributing the content evenly along the cross axis with equal space around them.
CSS equivalent: align-content: space-evenly;
Example usage:
These classes can be applied to flex containers to control the alignment of their content along the cross axis.
Certainly! Here's the documentation for the utility classes related to flexbox align items:
Align Items Classes
.a-items-initial
Sets the align-items property to initial, restoring the default align items behavior.
CSS equivalent: align-items: initial;
Example usage:
.a-items-inherit
Sets the align-items property to inherit, inheriting the align items behavior from its parent.
CSS equivalent: align-items: inherit;
Example usage:
.a-items-baseline
Sets the align-items property to baseline, aligning the items along their baselines.
CSS equivalent: align-items: baseline;
Example usage:
.a-items-stretch
Sets the align-items property to stretch, stretching the items to fill the container along the cross axis.
CSS equivalent: align-items: stretch;
Example usage:
Align Self Classes
.a-self-initial
Sets the align-self property to initial, restoring the default align self behavior for individual flex items.
CSS equivalent: align-self: initial;
Example usage:
.a-self-inherit
Sets the align-self property to inherit, inheriting the align self behavior from its parent flex container.
CSS equivalent: align-self: inherit;
Example usage:
.a-self-auto
Sets the align-self property to auto, allowing the flex container to determine the alignment for the individual item.
CSS equivalent: align-self: auto;
Example usage:
.a-self-start
Sets the align-self property to flex-start, aligning the item to the start of the cross axis within the flex container.
CSS equivalent: align-self: flex-start;
Example usage:
.a-self-end
Sets the align-self property to flex-end, aligning the item to the end of the cross axis within the flex container.
CSS equivalent: align-self: flex-end;
Example usage:
.a-self-center
Sets the align-self property to center, aligning the item to the center of the cross axis within the flex container.
CSS equivalent: align-self: center;
Example usage:
.a-self-baseline
Sets the align-self property to baseline, aligning the item along its baseline within the flex container.
CSS equivalent: align-self: baseline;
Example usage:
.a-self-stretch
Sets the align-self property to stretch, stretching the item to fill the cross axis within the flex container.
CSS equivalent: align-self: stretch;
Example usage:
These classes can be applied to individual flex items within a flex container to control their alignment along the cross axis.
Last updated