Align Self
Controls the positioning of a single flex or grid element along the transverse axis of its container.
Class | Properties |
---|---|
as-auto | align-self: auto; |
as-n | align-self: normal; |
as-c | align-self: center; |
as-start | align-self: start; |
as-e | align-self: end; |
as-fs | align-self: flex-start; |
as-fe | align-self: flex-end; |
as-stretch | align-self: stretch; |
Using breakpoints
Using responsive breakpoints like sm:as-*
, md:as-*
, lg:as-*
, and xxl:as-*
allows targeting specific utilities in different viewports.
Using variants
Using :hover
variants such as h:as-*
allows you to override elements and change their values when hovering over them.